[go: up one dir, main page]

[][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) -> &Extras[src]

Optional application specific data.

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.