Enum gltf_json::accessor::ComponentType [−][src]
pub enum ComponentType {
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 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 Copy for ComponentType[src]
impl Copy for ComponentTypeimpl Debug for ComponentType[src]
impl Debug for ComponentTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for ComponentType[src]
impl Eq for ComponentTypeimpl PartialEq for ComponentType[src]
impl PartialEq for ComponentTypefn eq(&self, other: &ComponentType) -> bool[src]
fn eq(&self, other: &ComponentType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Serialize for ComponentType[src]
impl Serialize for ComponentTypeAuto Trait Implementations
impl Send for ComponentType
impl Send for ComponentTypeimpl Sync for ComponentType
impl Sync for ComponentType