Struct gltf::buffer::View [−][src]
pub struct View<'a> { /* fields omitted */ }A view into a buffer generally representing a subset of the buffer.
Methods
impl<'a> View<'a>[src]
impl<'a> View<'a>pub fn index(&self) -> usize[src]
pub fn index(&self) -> usizeReturns the internal JSON index.
pub fn buffer(&self) -> Buffer<'a>[src]
pub fn buffer(&self) -> Buffer<'a>Returns the parent Buffer.
pub fn length(&self) -> usize[src]
pub fn length(&self) -> usizeReturns the length of the buffer view in bytes.
pub fn offset(&self) -> usize[src]
pub fn offset(&self) -> usizeReturns the offset into the parent buffer in bytes.
pub fn stride(&self) -> Option<usize>[src]
pub fn stride(&self) -> Option<usize>Returns the stride in bytes between vertex attributes or other interleavable
data. When None, data is assumed to be tightly packed.
pub fn name(&self) -> Option<&str>[src]
pub fn name(&self) -> Option<&str>Optional user-defined name for this object.
pub fn target(&self) -> Option<Target>[src]
pub fn target(&self) -> Option<Target>Optional target the buffer should be bound to.
pub fn extras(&self) -> &Extras[src]
pub fn extras(&self) -> &ExtrasOptional application specific data.
Trait Implementations
impl<'a> Clone for View<'a>[src]
impl<'a> Clone for View<'a>fn clone(&self) -> View<'a>[src]
fn clone(&self) -> View<'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)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> Debug for View<'a>[src]
impl<'a> Debug for View<'a>