[][src]Struct gltf_json::buffer::View

pub struct View {
    pub buffer: Index<Buffer>,
    pub byte_length: u32,
    pub byte_offset: Option<u32>,
    pub byte_stride: Option<u32>,
    pub target: Option<Checked<Target>>,
    pub extensions: Option<View>,
    pub extras: Extras,
}

A view into a buffer generally representing a subset of the buffer.

https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-bufferview

Fields

buffer: Index<Buffer>

The parent Buffer.

byte_length: u32

The length of the BufferView in bytes.

byte_offset: Option<u32>

Offset into the parent buffer in bytes.

byte_stride: Option<u32>

The stride in bytes between vertex attributes or other interleavable data.

When zero, data is assumed to be tightly packed.

target: Option<Checked<Target>>

Optional target the buffer should be bound to.

extensions: Option<View>

Extension specific data.

extras: Extras

Optional application specific data.

Trait Implementations

impl<'a> Get<View> for Root[src]

impl Validate for View[src]

impl Clone for View[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for View[src]

impl Serialize for View[src]

impl<'de> Deserialize<'de> for View[src]

Auto Trait Implementations

impl Sync for View

impl Unpin for View

impl Send for View

impl UnwindSafe for View

impl RefUnwindSafe for View

Blanket Implementations

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> From<T> for T[src]

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]