Struct gltf::Accessor [−][src]
pub struct Accessor<'a> { /* fields omitted */ }
Expand description
A typed view into a buffer view.
Implementations
impl<'a> Accessor<'a>
[src]
impl<'a> Accessor<'a>
[src]pub fn view(&self) -> Option<View<'a>>
[src]
pub fn view(&self) -> Option<View<'a>>
[src]Returns the buffer view this accessor reads from.
This may be None
if the corresponding accessor is sparse.
pub fn offset(&self) -> usize
[src]
pub fn offset(&self) -> usize
[src]Returns the offset relative to the start of the parent buffer view in bytes.
pub fn count(&self) -> usize
[src]
pub fn count(&self) -> usize
[src]Returns the number of components within the buffer view - not to be confused with the number of bytes in the buffer view.
pub fn dimensions(&self) -> Dimensions
[src]
pub fn dimensions(&self) -> Dimensions
[src]Specifies if the attribute is a scalar, vector, or matrix.
pub fn min(&self) -> Option<Value>
[src]
pub fn min(&self) -> Option<Value>
[src]Returns the minimum value of each component in this attribute.
pub fn max(&self) -> Option<Value>
[src]
pub fn max(&self) -> Option<Value>
[src]Returns the maximum value of each component in this attribute.
pub fn name(&self) -> Option<&'a str>
[src]
This is supported on crate feature names
only.
pub fn name(&self) -> Option<&'a str>
[src]names
only.Optional user-defined name for this object.
pub fn normalized(&self) -> bool
[src]
pub fn normalized(&self) -> bool
[src]Specifies whether integer data values should be normalized.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Accessor<'a>
impl<'a> Send for Accessor<'a>
impl<'a> Sync for Accessor<'a>
impl<'a> Unpin for Accessor<'a>
impl<'a> UnwindSafe for Accessor<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more