Struct kgltf::GLB[][src]

pub struct GLB {
    pub gltf: GlTf,
    pub glb_version: u32,
    pub binary_data: Option<Vec<u8>>,
}

A GLTF with all of its data included within a buffer.

Fields

gltf: GlTf

The GLTF data decoded from the Json embedded in the GLB.

glb_version: u32

The version of the GLB file. This is different from the GLTF version.

binary_data: Option<Vec<u8>>

The binary data buffer that is reference from the GLTF.

Implementations

impl GLB[src]

pub fn from_bytes(data: &[u8]) -> Result<Self, GLBError>[src]

pub fn from_reader<R: Read>(reader: R) -> Result<Self, GLBError>[src]

Trait Implementations

impl Clone for GLB[src]

impl Debug for GLB[src]

Auto Trait Implementations

impl RefUnwindSafe for GLB

impl Send for GLB

impl Sync for GLB

impl Unpin for GLB

impl UnwindSafe for GLB

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.