pub struct Accessor<'a> { /* private fields */ }
Expand description
A typed view into a buffer view.
Implementations§
Source§impl<'a> Accessor<'a>
impl<'a> Accessor<'a>
Sourcepub fn view(&self) -> Option<View<'a>>
pub fn view(&self) -> Option<View<'a>>
Returns the buffer view this accessor reads from.
This may be None
if the corresponding accessor is sparse.
Sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
Returns the offset relative to the start of the parent buffer view in bytes.
This will be 0 if the corresponding accessor is sparse.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Returns the number of components within the buffer view - not to be confused with the number of bytes in the buffer view.
Sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
Available on crate feature extensions
only.
pub fn extensions(&self) -> Option<&Map<String, Value>>
extensions
only.Returns extension data unknown to this crate version.
Sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Available on crate feature extensions
only.
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
extensions
only.Queries extension data unknown to this crate version.
Sourcepub fn dimensions(&self) -> Dimensions
pub fn dimensions(&self) -> Dimensions
Specifies if the attribute is a scalar, vector, or matrix.
Sourcepub fn min(&self) -> Option<Value>
pub fn min(&self) -> Option<Value>
Returns the minimum value of each component in this attribute.
Sourcepub fn max(&self) -> Option<Value>
pub fn max(&self) -> Option<Value>
Returns the maximum value of each component in this attribute.
Sourcepub fn name(&self) -> Option<&'a str>
Available on crate feature names
only.
pub fn name(&self) -> Option<&'a str>
names
only.Optional user-defined name for this object.
Sourcepub fn normalized(&self) -> bool
pub fn normalized(&self) -> bool
Specifies whether integer data values should be normalized.