[][src]Struct gltf::accessor::sparse::Sparse

pub struct Sparse<'a> { /* fields omitted */ }

Sparse storage of attributes that deviate from their initialization value.

Methods

impl<'a> Sparse<'a>[src]

pub fn count(&self) -> u32[src]

Returns the number of attributes encoded in this sparse accessor.

pub fn indices(&self) -> Indices<'a>[src]

Returns an index array of size count that points to those accessor attributes that deviate from their initialization value.

pub fn values(&self) -> Values<'a>[src]

Returns an array of size count * number_of_components, storing the displaced accessor attributes pointed by indices.

pub fn extras(&self) -> &'a Extras[src]

Optional application specific data.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Sparse<'a>

impl<'a> Send for Sparse<'a>

impl<'a> Sync for Sparse<'a>

impl<'a> Unpin for Sparse<'a>

impl<'a> UnwindSafe for Sparse<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.