pub struct Buffer {
pub byte_length: USize64,
pub uri: Option<String>,
pub extensions: Option<Buffer>,
pub extras: Extras,
}
Expand description
A buffer points to binary data representing geometry, animations, or skins.
Fields§
§byte_length: USize64
The length of the buffer in bytes.
uri: Option<String>
The uri of the buffer. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri.
extensions: Option<Buffer>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Buffer
impl<'de> Deserialize<'de> for Buffer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more