Struct gltf::buffer::Buffer
[−]
[src]
pub struct Buffer<'a> { /* fields omitted */ }
A buffer points to binary data representing geometry, animations, or skins.
Methods
impl<'a> Buffer<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Buffer) -> Self
Constructs a Buffer
.
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Buffer
Returns the internal JSON item.
fn length(&self) -> usize
The length of the buffer in bytes.
fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for Buffer<'a>
[src]
fn clone(&self) -> Buffer<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more