Struct rin::blender::scene_data::Object [−][src]
pub struct Object<'a> { /* fields omitted */ }
Implementations
impl<'a> Object<'a>
[src]
impl<'a> Object<'a>
[src]pub fn new(file_db: FileDb<'a>, block: &'a FileBlock) -> Object<'a>
[src]
pub fn new_with_index(
file_db: FileDb<'a>,
block: &'a FileBlock,
index: usize
) -> Object<'a>
[src]
file_db: FileDb<'a>,
block: &'a FileBlock,
index: usize
) -> Object<'a>
pub fn cast_to(self, structure: &'a str) -> Result<Object<'a>, Error>
[src]
pub fn addr(&self) -> u64
[src]
pub fn data(&self) -> &'a [u8]ⓘ
[src]
pub fn get<T>(&self, field_name: &str) -> Result<&'a T, Error>
[src]
pub unsafe fn get_contiguous<T>(&self, field_name: &str) -> Result<&'a T, Error>
[src]
pub fn read_field(&self, field_name: &str) -> Result<&'a [u8], Error>
[src]
pub unsafe fn read_size(
&self,
field_name: &str,
field_size: usize
) -> Result<&'a [u8], Error>
[src]
&self,
field_name: &str,
field_size: usize
) -> Result<&'a [u8], Error>
pub fn get_object(&self, field_name: &str) -> Result<Object<'a>, Error>
[src]
pub fn get_str(&self, field_name: &str) -> Result<&'a str, Error>
[src]
pub fn get_addr(&self, field_name: &str) -> Result<u64, Error>
[src]
pub fn get_slice<T>(&self, field_name: &str) -> Result<&'a [T], Error>
[src]
pub fn get_data_slice<T>(
&self,
field_name: &str,
len: usize
) -> Result<&'a [T], Error>
[src]
&self,
field_name: &str,
len: usize
) -> Result<&'a [T], Error>
pub fn get_vec<T>(
&self,
field_name: &str,
len: usize
) -> Result<Vec<T, Global>, Error> where
T: Clone,
[src]
&self,
field_name: &str,
len: usize
) -> Result<Vec<T, Global>, Error> where
T: Clone,
pub fn get_object_slice(
&self,
field_name: &str
) -> Result<Vec<Object<'a>, Global>, Error>
[src]
&self,
field_name: &str
) -> Result<Vec<Object<'a>, Global>, Error>
pub fn get_ptr_slice(
&self,
field_name: &str,
len: usize
) -> Result<Vec<Object<'a>, Global>, Error>
[src]
&self,
field_name: &str,
len: usize
) -> Result<Vec<Object<'a>, Global>, Error>
pub fn get_object_at(
&self,
field_name: &str,
at: usize
) -> Result<Object<'a>, Error>
[src]
&self,
field_name: &str,
at: usize
) -> Result<Object<'a>, Error>
pub fn get_list(&self, field_name: &str) -> Result<List<'a>, Error>
[src]
pub fn structure(&self) -> &Structure
[src]
pub fn name(&self) -> Result<&'a str, Error>
[src]
pub fn file_block(&self) -> &FileBlock
[src]
pub fn custom_properties(&self) -> Option<Group<'a>>
[src]
pub fn children(&self) -> impl Iterator<Item = Object<'_>>
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
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]