Struct gltf::Accessor [−][src]
pub struct Accessor<'a> { /* fields omitted */ }A typed view into a buffer view.
Methods
impl<'a> Accessor<'a>[src]
impl<'a> Accessor<'a>pub fn index(&self) -> usize[src]
pub fn index(&self) -> usizeReturns the internal JSON index.
pub fn size(&self) -> usize[src]
pub fn size(&self) -> usizeReturns the size of each component that this accessor describes.
pub fn view(&self) -> View<'a>[src]
pub fn view(&self) -> View<'a>Returns the buffer view this accessor reads from.
pub fn offset(&self) -> usize[src]
pub fn offset(&self) -> usizeReturns the offset relative to the start of the parent buffer view in bytes.
pub fn count(&self) -> usize[src]
pub fn count(&self) -> usizeReturns the number of components within the buffer view - not to be confused with the number of bytes in the buffer view.
pub fn data_type(&self) -> DataType[src]
pub fn data_type(&self) -> DataTypeReturns the data type of components in the attribute.
pub fn extras(&self) -> &Extras[src]
pub fn extras(&self) -> &ExtrasOptional application specific data.
pub fn dimensions(&self) -> Dimensions[src]
pub fn dimensions(&self) -> DimensionsSpecifies if the attribute is a scalar, vector, or matrix.
pub fn min(&self) -> Option<Value>[src]
pub fn min(&self) -> Option<Value>Returns the minimum value of each component in this attribute.
pub fn max(&self) -> Option<Value>[src]
pub fn max(&self) -> Option<Value>Returns the maximum value of each component in this attribute.
pub fn name(&self) -> Option<&str>[src]
pub fn name(&self) -> Option<&str>Optional user-defined name for this object.
pub fn normalized(&self) -> bool[src]
pub fn normalized(&self) -> boolSpecifies whether integer data values should be normalized.
pub fn sparse(&self) -> Option<Sparse>[src]
pub fn sparse(&self) -> Option<Sparse>Returns sparse storage of attributes that deviate from their initialization value.
Trait Implementations
impl<'a> Clone for Accessor<'a>[src]
impl<'a> Clone for Accessor<'a>fn clone(&self) -> Accessor<'a>[src]
fn clone(&self) -> Accessor<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'a> Debug for Accessor<'a>[src]
impl<'a> Debug for Accessor<'a>