#[repr(u32)]pub enum MeshStreamSemantic {
Indices = 0,
Positions = 1,
Normals = 2,
Colors = 3,
TexCoords = 4,
BoneIndicesWeights = 5,
}
Expand description
Mesh semantic to describe what a stream contains
Variants§
Trait Implementations§
Source§impl CheckedBitPattern for MeshStreamSemantic
impl CheckedBitPattern for MeshStreamSemantic
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for MeshStreamSemantic
impl Clone for MeshStreamSemantic
Source§fn clone(&self) -> MeshStreamSemantic
fn clone(&self) -> MeshStreamSemantic
Returns a duplicate 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 MeshStreamSemantic
impl Debug for MeshStreamSemantic
Source§impl From<MeshStreamSemantic> for u32
impl From<MeshStreamSemantic> for u32
Source§fn from(enum_value: MeshStreamSemantic) -> Self
fn from(enum_value: MeshStreamSemantic) -> Self
Converts to this type from the input type.
Source§impl Hash for MeshStreamSemantic
impl Hash for MeshStreamSemantic
Source§impl PartialEq for MeshStreamSemantic
impl PartialEq for MeshStreamSemantic
Source§impl TryFrom<u32> for MeshStreamSemantic
impl TryFrom<u32> for MeshStreamSemantic
Source§type Error = TryFromPrimitiveError<MeshStreamSemantic>
type Error = TryFromPrimitiveError<MeshStreamSemantic>
The type returned in the event of a conversion error.
impl Copy for MeshStreamSemantic
impl Eq for MeshStreamSemantic
impl NoUninit for MeshStreamSemantic
impl StructuralPartialEq for MeshStreamSemantic
Auto Trait Implementations§
impl Freeze for MeshStreamSemantic
impl RefUnwindSafe for MeshStreamSemantic
impl Send for MeshStreamSemantic
impl Sync for MeshStreamSemantic
impl Unpin for MeshStreamSemantic
impl UnwindSafe for MeshStreamSemantic
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