#[repr(C)]pub enum CullMode {
None = 0,
Front = 1,
Back = 2,
}
Expand description
Type of faces to be culled.
Variants§
None = 0
No faces should be culled
Front = 1
Front faces should be culled
Back = 2
Back faces should be culled
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CullMode
impl<'de> Deserialize<'de> for CullMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CullMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CullMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CullMode
impl Serialize for CullMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CullMode
impl Eq for CullMode
impl StructuralPartialEq for CullMode
Auto Trait Implementations§
impl Freeze for CullMode
impl RefUnwindSafe for CullMode
impl Send for CullMode
impl Sync for CullMode
impl Unpin for CullMode
impl UnwindSafe for CullMode
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