Enum gltf_json::accessor::ComponentType
source · pub enum ComponentType {
I8 = 1,
U8 = 2,
I16 = 3,
U16 = 4,
U32 = 5,
F32 = 6,
}
Expand description
The component data type.
Variants§
I8 = 1
Corresponds to GL_BYTE
.
U8 = 2
Corresponds to GL_UNSIGNED_BYTE
.
I16 = 3
Corresponds to GL_SHORT
.
U16 = 4
Corresponds to GL_UNSIGNED_SHORT
.
U32 = 5
Corresponds to GL_UNSIGNED_INT
.
F32 = 6
Corresponds to GL_FLOAT
.
Implementations§
source§impl ComponentType
impl ComponentType
Trait Implementations§
source§impl Clone for ComponentType
impl Clone for ComponentType
source§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentType
impl Debug for ComponentType
source§impl<'de> Deserialize<'de> for ComponentType
impl<'de> Deserialize<'de> for ComponentType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ComponentType
impl PartialEq for ComponentType
source§fn eq(&self, other: &ComponentType) -> bool
fn eq(&self, other: &ComponentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ComponentType
impl Serialize for ComponentType
impl Copy for ComponentType
impl Eq for ComponentType
impl StructuralEq for ComponentType
impl StructuralPartialEq for ComponentType
Auto Trait Implementations§
impl RefUnwindSafe for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Unpin for ComponentType
impl UnwindSafe for ComponentType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more