pub struct Accessor<'a>(/* private fields */);Expand description
Typed view of a glTF Accessor object.
Implementations§
Source§impl<'a> Accessor<'a>
impl<'a> Accessor<'a>
Source§impl<'a> Accessor<'a>
impl<'a> Accessor<'a>
Sourcepub fn buffer_view(self) -> Option<BufferViewIndex>
pub fn buffer_view(self) -> Option<BufferViewIndex>
Returns the optional source buffer-view index.
Sourcepub fn component_type(self) -> Option<ComponentType>
pub fn component_type(self) -> Option<ComponentType>
Returns the typed component format.
Sourcepub fn accessor_type(self) -> Option<&'a str>
pub fn accessor_type(self) -> Option<&'a str>
Returns the accessor shape such as SCALAR or VEC3.
Sourcepub fn normalized(self) -> bool
pub fn normalized(self) -> bool
Returns whether integer values are normalized on read.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Accessor<'a>
impl<'a> RefUnwindSafe for Accessor<'a>
impl<'a> Send for Accessor<'a>
impl<'a> Sync for Accessor<'a>
impl<'a> Unpin for Accessor<'a>
impl<'a> UnsafeUnpin for Accessor<'a>
impl<'a> UnwindSafe for Accessor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more