pub struct Accessor<'a> { /* private fields */ }
Expand description

A typed view into a buffer view.

Implementations

Returns the internal JSON index.

Returns the size of each component that this accessor describes.

Returns the buffer view this accessor reads from.

This may be None if the corresponding accessor is sparse.

Returns the offset relative to the start of the parent buffer view in bytes.

Returns the number of components within the buffer view - not to be confused with the number of bytes in the buffer view.

Returns the data type of components in the attribute.

Optional application specific data.

Specifies if the attribute is a scalar, vector, or matrix.

Returns the minimum value of each component in this attribute.

Returns the maximum value of each component in this attribute.

This is supported on crate feature names only.

Optional user-defined name for this object.

Specifies whether integer data values should be normalized.

Returns sparse storage of attributes that deviate from their initialization value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.