#[repr(u32)]pub enum PrimitiveType {
Points = 0,
LineStrip = 3,
LineLoop = 2,
Lines = 1,
TriangleStrip = 5,
TriangleFan = 6,
Triangles = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 PrimitiveType
impl Debug for PrimitiveType
Source§impl From<PrimitiveType> for u32
impl From<PrimitiveType> for u32
Source§fn from(enum_value: PrimitiveType) -> Self
fn from(enum_value: PrimitiveType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
Source§impl TryFrom<u32> for PrimitiveType
impl TryFrom<u32> for PrimitiveType
Source§type Error = TryFromPrimitiveError<PrimitiveType>
type Error = TryFromPrimitiveError<PrimitiveType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PrimitiveType
impl TryFromPrimitive for PrimitiveType
const NAME: &'static str = "PrimitiveType"
type Primitive = u32
type Error = TryFromPrimitiveError<PrimitiveType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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