Struct rin::blender::scene_data::FileBlock [−][src]
#[repr(C)]pub struct FileBlock { pub code: [u8; 4], pub size: i32, pub address: u64, pub sdna_index: i32, pub count: i32, pub data: Vec<u8, Global>, }
Fields
code: [u8; 4]size: i32address: u64sdna_index: i32count: i32data: Vec<u8, Global>Implementations
impl FileBlock[src]
impl FileBlock[src]pub fn parse<R>(
file: &mut R,
pointer_size: u8
) -> Result<Option<FileBlock>, Error> where
R: Read, [src]
file: &mut R,
pointer_size: u8
) -> Result<Option<FileBlock>, Error> where
R: Read,
pub fn code(&self) -> &str[src]
pub fn object(&'a self, file_db: FileDb<'a>) -> Object<'a>[src]
pub fn slice(
&'a self,
dim: usize,
file_db: FileDb<'a>
) -> Vec<Object<'a>, Global>ⓘ[src]
&'a self,
dim: usize,
file_db: FileDb<'a>
) -> Vec<Object<'a>, Global>ⓘ
pub fn data_slice<T>(&self, len: usize) -> Result<&[T], Error>[src]
pub fn size(&self) -> usize[src]
pub fn data(&self) -> &[u8]ⓘ[src]
pub fn cast<T>(&self) -> Result<&T, Error>[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileBlock
impl Send for FileBlock
impl Sync for FileBlock
impl Unpin for FileBlock
impl UnwindSafe for FileBlock
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]