Enum gltf::accessor::DataType [−][src]
pub enum DataType {
I8,
U8,
I16,
U16,
U32,
F32,
}The component data type.
Variants
I8Corresponds to GL_BYTE.
U8Corresponds to GL_UNSIGNED_BYTE.
I16Corresponds to GL_SHORT.
U16Corresponds to GL_UNSIGNED_SHORT.
U32Corresponds to GL_UNSIGNED_INT.
F32Corresponds to GL_FLOAT.
Methods
impl ComponentType[src]
impl ComponentTypepub fn size(&self) -> usize[src]
pub fn size(&self) -> usizeReturns the number of bytes this value represents.
pub fn as_gl_enum(self) -> u32[src]
pub fn as_gl_enum(self) -> u32Returns the corresponding GLenum.
Trait Implementations
impl Serialize for ComponentType[src]
impl Serialize for ComponentTypefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Clone for ComponentType[src]
impl Clone for ComponentTypefn clone(&self) -> ComponentType[src]
fn clone(&self) -> ComponentTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ComponentType[src]
impl Debug for ComponentTypefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for ComponentType[src]
impl Copy for ComponentTypeimpl<'de> Deserialize<'de> for ComponentType[src]
impl<'de> Deserialize<'de> for ComponentTypefn deserialize<__D>(
__deserializer: __D
) -> Result<ComponentType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ComponentType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for ComponentType
impl Send for ComponentTypeimpl Sync for ComponentType
impl Sync for ComponentType