#[repr(u32)]
pub enum MeshPrimitiveTopology {
TriangleList,
}Expand description
Mesh primitive topology
Variants
TriangleList
Triangle list
Trait Implementations
sourceimpl CheckedBitPattern for MeshPrimitiveTopology
impl CheckedBitPattern for MeshPrimitiveTopology
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. Read more
sourcefn 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.
sourceimpl Clone for MeshPrimitiveTopology
impl Clone for MeshPrimitiveTopology
sourcefn clone(&self) -> MeshPrimitiveTopology
fn clone(&self) -> MeshPrimitiveTopology
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MeshPrimitiveTopology
impl Debug for MeshPrimitiveTopology
sourceimpl From<MeshPrimitiveTopology> for u32
impl From<MeshPrimitiveTopology> for u32
sourcefn from(enum_value: MeshPrimitiveTopology) -> Self
fn from(enum_value: MeshPrimitiveTopology) -> Self
Converts to this type from the input type.
sourceimpl Hash for MeshPrimitiveTopology
impl Hash for MeshPrimitiveTopology
sourceimpl TryFrom<u32> for MeshPrimitiveTopology
impl TryFrom<u32> for MeshPrimitiveTopology
type Error = TryFromPrimitiveError<MeshPrimitiveTopology>
type Error = TryFromPrimitiveError<MeshPrimitiveTopology>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for MeshPrimitiveTopology
impl TryFromPrimitive for MeshPrimitiveTopology
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for MeshPrimitiveTopology
impl Eq for MeshPrimitiveTopology
impl NoUninit for MeshPrimitiveTopology
impl StructuralEq for MeshPrimitiveTopology
impl StructuralPartialEq for MeshPrimitiveTopology
Auto Trait Implementations
impl RefUnwindSafe for MeshPrimitiveTopology
impl Send for MeshPrimitiveTopology
impl Sync for MeshPrimitiveTopology
impl Unpin for MeshPrimitiveTopology
impl UnwindSafe for MeshPrimitiveTopology
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more