#[non_exhaustive]pub enum AttributeType {
Byte,
UnsignedByte,
Short,
UnsignedShort,
Float,
}
Expand description
Data types for the components of a vertex attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Byte
Data is the same size of a byte
UnsignedByte
Data is the same size of an unsigned byte
Short
Data is the same size of a short integer
UnsignedShort
Data is the same size of an unsigned short integer
Float
Data is the same size of a float
Trait Implementations§
Source§impl Clone for AttributeType
impl Clone for AttributeType
Source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
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 AttributeType
impl Debug for AttributeType
Source§impl Display for AttributeType
impl Display for AttributeType
Source§impl<'a> FromValue<'a> for AttributeType
impl<'a> FromValue<'a> for AttributeType
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for AttributeType
impl<'a> FromValueOptional<'a> for AttributeType
Source§impl Hash for AttributeType
impl Hash for AttributeType
Source§impl Ord for AttributeType
impl Ord for AttributeType
Source§fn cmp(&self, other: &AttributeType) -> Ordering
fn cmp(&self, other: &AttributeType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
Source§impl PartialOrd for AttributeType
impl PartialOrd for AttributeType
Source§impl SetValue for AttributeType
impl SetValue for AttributeType
Source§impl StaticType for AttributeType
impl StaticType for AttributeType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for AttributeType
impl Eq for AttributeType
impl StructuralPartialEq for AttributeType
Auto Trait Implementations§
impl Freeze for AttributeType
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnwindSafe for AttributeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.