#[repr(u8)]pub enum PrimitiveMode {
Points = 0,
Lines = 1,
LineLoop = 2,
LineStrip = 3,
Triangles = 4,
TriangleStrip = 5,
TriangleFan = 6,
}Variants§
Implementations§
Source§impl PrimitiveMode
impl PrimitiveMode
pub const VALID_PRIMITIVE_MODES: &[u32]
Trait Implementations§
Source§impl Clone for PrimitiveMode
impl Clone for PrimitiveMode
Source§fn clone(&self) -> PrimitiveMode
fn clone(&self) -> PrimitiveMode
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 PrimitiveMode
impl Debug for PrimitiveMode
Source§impl From<PrimitiveMode> for u32
impl From<PrimitiveMode> for u32
Source§fn from(value: PrimitiveMode) -> Self
fn from(value: PrimitiveMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveMode
impl PartialEq for PrimitiveMode
Source§impl Serialize for PrimitiveMode
impl Serialize for PrimitiveMode
Source§impl TryFrom<u32> for PrimitiveMode
impl TryFrom<u32> for PrimitiveMode
impl Copy for PrimitiveMode
impl Eq for PrimitiveMode
impl StructuralPartialEq for PrimitiveMode
Auto Trait Implementations§
impl Freeze for PrimitiveMode
impl RefUnwindSafe for PrimitiveMode
impl Send for PrimitiveMode
impl Sync for PrimitiveMode
impl Unpin for PrimitiveMode
impl UnwindSafe for PrimitiveMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.