#[repr(transparent)]pub struct CullModeFlags(_);Expand description
Implementations
sourceimpl CullModeFlags
impl CullModeFlags
pub const fn empty() -> CullModeFlags
pub const fn from_raw(x: u32) -> CullModeFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: CullModeFlags) -> bool
sourcepub const fn contains(self, other: CullModeFlags) -> bool
pub const fn contains(self, other: CullModeFlags) -> bool
Returns whether other is a subset of self
sourceimpl CullModeFlags
impl CullModeFlags
pub const NONE: CullModeFlags = Self(0)
pub const FRONT: CullModeFlags = Self(1)
pub const BACK: CullModeFlags = Self(2)
pub const FRONT_AND_BACK: CullModeFlags = Self(3)
Trait Implementations
sourceimpl BitAnd<CullModeFlags> for CullModeFlags
impl BitAnd<CullModeFlags> for CullModeFlags
type Output = CullModeFlags
type Output = CullModeFlags
The resulting type after applying the & operator.
sourcefn bitand(self, rhs: CullModeFlags) -> CullModeFlags
fn bitand(self, rhs: CullModeFlags) -> CullModeFlags
Performs the & operation. Read more
sourceimpl BitAndAssign<CullModeFlags> for CullModeFlags
impl BitAndAssign<CullModeFlags> for CullModeFlags
sourcefn bitand_assign(&mut self, rhs: CullModeFlags)
fn bitand_assign(&mut self, rhs: CullModeFlags)
Performs the &= operation. Read more
sourceimpl BitOr<CullModeFlags> for CullModeFlags
impl BitOr<CullModeFlags> for CullModeFlags
type Output = CullModeFlags
type Output = CullModeFlags
The resulting type after applying the | operator.
sourcefn bitor(self, rhs: CullModeFlags) -> CullModeFlags
fn bitor(self, rhs: CullModeFlags) -> CullModeFlags
Performs the | operation. Read more
sourceimpl BitOrAssign<CullModeFlags> for CullModeFlags
impl BitOrAssign<CullModeFlags> for CullModeFlags
sourcefn bitor_assign(&mut self, rhs: CullModeFlags)
fn bitor_assign(&mut self, rhs: CullModeFlags)
Performs the |= operation. Read more
sourceimpl BitXor<CullModeFlags> for CullModeFlags
impl BitXor<CullModeFlags> for CullModeFlags
type Output = CullModeFlags
type Output = CullModeFlags
The resulting type after applying the ^ operator.
sourcefn bitxor(self, rhs: CullModeFlags) -> CullModeFlags
fn bitxor(self, rhs: CullModeFlags) -> CullModeFlags
Performs the ^ operation. Read more
sourceimpl BitXorAssign<CullModeFlags> for CullModeFlags
impl BitXorAssign<CullModeFlags> for CullModeFlags
sourcefn bitxor_assign(&mut self, rhs: CullModeFlags)
fn bitxor_assign(&mut self, rhs: CullModeFlags)
Performs the ^= operation. Read more
sourceimpl Clone for CullModeFlags
impl Clone for CullModeFlags
sourcefn clone(&self) -> CullModeFlags
fn clone(&self) -> CullModeFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CullModeFlags
impl Debug for CullModeFlags
sourceimpl Default for CullModeFlags
impl Default for CullModeFlags
sourcefn default() -> CullModeFlags
fn default() -> CullModeFlags
Returns the “default value” for a type. Read more
sourceimpl Hash for CullModeFlags
impl Hash for CullModeFlags
sourceimpl Not for CullModeFlags
impl Not for CullModeFlags
type Output = CullModeFlags
type Output = CullModeFlags
The resulting type after applying the ! operator.
sourcefn not(self) -> CullModeFlags
fn not(self) -> CullModeFlags
Performs the unary ! operation. Read more
sourceimpl Ord for CullModeFlags
impl Ord for CullModeFlags
sourceimpl PartialEq<CullModeFlags> for CullModeFlags
impl PartialEq<CullModeFlags> for CullModeFlags
sourcefn eq(&self, other: &CullModeFlags) -> bool
fn eq(&self, other: &CullModeFlags) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CullModeFlags) -> bool
fn ne(&self, other: &CullModeFlags) -> bool
This method tests for !=.
sourceimpl PartialOrd<CullModeFlags> for CullModeFlags
impl PartialOrd<CullModeFlags> for CullModeFlags
sourcefn partial_cmp(&self, other: &CullModeFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &CullModeFlags) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for CullModeFlags
impl Eq for CullModeFlags
impl StructuralEq for CullModeFlags
impl StructuralPartialEq for CullModeFlags
Auto Trait Implementations
impl RefUnwindSafe for CullModeFlags
impl Send for CullModeFlags
impl Sync for CullModeFlags
impl Unpin for CullModeFlags
impl UnwindSafe for CullModeFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more