Enum gltf::accessor::Dimensions
source · pub enum Dimensions {
Scalar = 1,
Vec2 = 2,
Vec3 = 3,
Vec4 = 4,
Mat2 = 5,
Mat3 = 6,
Mat4 = 7,
}
Expand description
Specifies whether an attribute, vector, or matrix.
Variants§
Scalar = 1
Scalar quantity.
Vec2 = 2
2D vector.
Vec3 = 3
3D vector.
Vec4 = 4
4D vector.
Mat2 = 5
2x2 matrix.
Mat3 = 6
3x3 matrix.
Mat4 = 7
4x4 matrix.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Type
impl PartialEq for Type
source§impl Serialize for Type
impl Serialize for Type
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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 Copy for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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