#[non_exhaustive]#[repr(u32)]pub enum DrawMode {
Points = 0,
LineStrip = 3,
LineLoop = 2,
Lines = 1,
LineStripAdjacency = 11,
LinesAdjacency = 10,
TriangleStrip = 5,
TriangleFan = 6,
Triangles = 4,
TriangleStripAdjacency = 13,
TrianglesAdjacency = 12,
Patches = 14,
}
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.
Points = 0
LineStrip = 3
LineLoop = 2
Lines = 1
LineStripAdjacency = 11
LinesAdjacency = 10
TriangleStrip = 5
TriangleFan = 6
Triangles = 4
TriangleStripAdjacency = 13
TrianglesAdjacency = 12
Patches = 14
Trait Implementations§
Source§impl Ord for DrawMode
impl Ord for DrawMode
Source§impl PartialOrd for DrawMode
impl PartialOrd for DrawMode
impl Copy for DrawMode
impl Eq for DrawMode
impl StructuralPartialEq for DrawMode
Auto Trait Implementations§
impl Freeze for DrawMode
impl RefUnwindSafe for DrawMode
impl Send for DrawMode
impl Sync for DrawMode
impl Unpin for DrawMode
impl UnwindSafe for DrawMode
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