Trait gltf::accessor::util::Item

source ·
pub trait Item {
    // Required methods
    fn from_slice(slice: &[u8]) -> Self;
    fn zero() -> Self;
}
Expand description

Represents items that can be read by an Accessor.

Required Methods§

source

fn from_slice(slice: &[u8]) -> Self

Create an object of this type from a byte slice.

source

fn zero() -> Self

Create an object of this type that represents a zero value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Item for f32

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Item for i8

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Item for i16

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Item for u8

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Item for u16

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Item for u32

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl<T: Item + Copy> Item for [T; 2]

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl<T: Item + Copy> Item for [T; 3]

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl<T: Item + Copy> Item for [T; 4]

source§

fn from_slice(slice: &[u8]) -> Self

source§

fn zero() -> Self

Implementors§