Enum cogl::Winding[][src]

#[non_exhaustive]
pub enum Winding {
    Clockwise,
    CounterClockwise,
    // some variants omitted
}

Enum used to represent the two directions of rotation. This can be used to set the front face for culling by calling Pipeline::set_front_face_winding.

Variants (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.
Clockwise

Vertices are in a clockwise order

CounterClockwise

Vertices are in a counter-clockwise order

Trait Implementations

impl Clone for Winding[src]

impl Copy for Winding[src]

impl Debug for Winding[src]

impl Display for Winding[src]

impl Eq for Winding[src]

impl<'a> FromValue<'a> for Winding[src]

impl<'a> FromValueOptional<'a> for Winding[src]

impl Hash for Winding[src]

impl Ord for Winding[src]

impl PartialEq<Winding> for Winding[src]

impl PartialOrd<Winding> for Winding[src]

impl SetValue for Winding[src]

impl StaticType for Winding[src]

impl StructuralEq for Winding[src]

impl StructuralPartialEq for Winding[src]

Auto Trait Implementations

impl RefUnwindSafe for Winding

impl Send for Winding

impl Sync for Winding

impl Unpin for Winding

impl UnwindSafe for Winding

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.