#[non_exhaustive]pub enum VerticesMode {
Points,
Lines,
LineLoop,
LineStrip,
Triangles,
TriangleStrip,
TriangleFan,
}
Expand description
Different ways of interpreting vertices when drawing.
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
FIXME, equivalent to
<constant>
GL_POINTS</constant>
Lines
FIXME, equivalent to <constant>
GL_LINES</constant>
LineLoop
FIXME, equivalent to
<constant>
GL_LINE_LOOP</constant>
LineStrip
FIXME, equivalent to
<constant>
GL_LINE_STRIP</constant>
Triangles
FIXME, equivalent to
<constant>
GL_TRIANGLES</constant>
TriangleStrip
FIXME, equivalent to
<constant>
GL_TRIANGLE_STRIP</constant>
TriangleFan
FIXME, equivalent to <constant>
GL_TRIANGLE_FAN</constant>
Trait Implementations§
Source§impl Clone for VerticesMode
impl Clone for VerticesMode
Source§fn clone(&self) -> VerticesMode
fn clone(&self) -> VerticesMode
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 VerticesMode
impl Debug for VerticesMode
Source§impl Display for VerticesMode
impl Display for VerticesMode
Source§impl<'a> FromValue<'a> for VerticesMode
impl<'a> FromValue<'a> for VerticesMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for VerticesMode
impl<'a> FromValueOptional<'a> for VerticesMode
Source§impl Hash for VerticesMode
impl Hash for VerticesMode
Source§impl Ord for VerticesMode
impl Ord for VerticesMode
Source§fn cmp(&self, other: &VerticesMode) -> Ordering
fn cmp(&self, other: &VerticesMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VerticesMode
impl PartialEq for VerticesMode
Source§impl PartialOrd for VerticesMode
impl PartialOrd for VerticesMode
Source§impl SetValue for VerticesMode
impl SetValue for VerticesMode
Source§impl StaticType for VerticesMode
impl StaticType for VerticesMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for VerticesMode
impl Eq for VerticesMode
impl StructuralPartialEq for VerticesMode
Auto Trait Implementations§
impl Freeze for VerticesMode
impl RefUnwindSafe for VerticesMode
impl Send for VerticesMode
impl Sync for VerticesMode
impl Unpin for VerticesMode
impl UnwindSafe for VerticesMode
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<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.