Enum gltf::accessor::Dimensions [−][src]
pub enum Dimensions {
Scalar,
Vec2,
Vec3,
Vec4,
Mat2,
Mat3,
Mat4,
}Expand description
Specifies whether an attribute, vector, or matrix.
Variants
Expand description
Scalar quantity.
Expand description
2D vector.
Expand description
3D vector.
Expand description
4D vector.
Expand description
2x2 matrix.
Expand description
3x3 matrix.
Expand description
4x4 matrix.
Implementations
impl Type[src]
impl Type[src]pub fn multiplicity(&self) -> usize[src]
pub fn multiplicity(&self) -> usize[src]Returns the equivalent number of scalar quantities this type represents.
Trait Implementations
impl<'de> Deserialize<'de> for Type[src]
impl<'de> Deserialize<'de> for Type[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Type, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Type, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Type[src]
impl Serialize for Type[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]Serialize this value into the given Serde serializer. Read more
impl Copy for Type[src]
impl Eq for Type[src]
impl StructuralEq for Type[src]
impl StructuralPartialEq for Type[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,