pub struct Sparse {
pub count: USize64,
pub indices: Indices,
pub values: Values,
pub extensions: Option<Sparse>,
pub extras: Extras,
}
Expand description
Sparse storage of attributes that deviate from their initialization value.
Fields§
§count: USize64
The number of attributes encoded in this sparse accessor.
indices: Indices
Index array of size count
that points to those accessor attributes
that deviate from their initialization value.
Indices must strictly increase.
values: Values
Array of size count * number_of_components
storing the displaced
accessor attributes pointed by indices
.
Substituted values must have the same component_type
and number of
components as the base Accessor
.
extensions: Option<Sparse>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sparse
impl<'de> Deserialize<'de> for Sparse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Sparse
impl RefUnwindSafe for Sparse
impl Send for Sparse
impl Sync for Sparse
impl Unpin for Sparse
impl UnwindSafe for Sparse
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