#[repr(transparent)]pub struct StencilFaceFlags(_);Expand description
Implementations
sourceimpl StencilFaceFlags
impl StencilFaceFlags
pub const fn empty() -> StencilFaceFlags
pub const fn from_raw(x: u32) -> StencilFaceFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: StencilFaceFlags) -> bool
sourcepub const fn contains(self, other: StencilFaceFlags) -> bool
pub const fn contains(self, other: StencilFaceFlags) -> bool
Returns whether other is a subset of self
sourceimpl StencilFaceFlags
impl StencilFaceFlags
sourcepub const FRONT: StencilFaceFlags = Self(1)
pub const FRONT: StencilFaceFlags = Self(1)
Front face
sourcepub const BACK: StencilFaceFlags = Self(2)
pub const BACK: StencilFaceFlags = Self(2)
Back face
sourcepub const FRONT_AND_BACK: StencilFaceFlags = Self(3)
pub const FRONT_AND_BACK: StencilFaceFlags = Self(3)
Front and back faces
Trait Implementations
sourceimpl BitAnd<StencilFaceFlags> for StencilFaceFlags
impl BitAnd<StencilFaceFlags> for StencilFaceFlags
type Output = StencilFaceFlags
type Output = StencilFaceFlags
The resulting type after applying the & operator.
sourcefn bitand(self, rhs: StencilFaceFlags) -> StencilFaceFlags
fn bitand(self, rhs: StencilFaceFlags) -> StencilFaceFlags
Performs the & operation. Read more
sourceimpl BitAndAssign<StencilFaceFlags> for StencilFaceFlags
impl BitAndAssign<StencilFaceFlags> for StencilFaceFlags
sourcefn bitand_assign(&mut self, rhs: StencilFaceFlags)
fn bitand_assign(&mut self, rhs: StencilFaceFlags)
Performs the &= operation. Read more
sourceimpl BitOr<StencilFaceFlags> for StencilFaceFlags
impl BitOr<StencilFaceFlags> for StencilFaceFlags
type Output = StencilFaceFlags
type Output = StencilFaceFlags
The resulting type after applying the | operator.
sourcefn bitor(self, rhs: StencilFaceFlags) -> StencilFaceFlags
fn bitor(self, rhs: StencilFaceFlags) -> StencilFaceFlags
Performs the | operation. Read more
sourceimpl BitOrAssign<StencilFaceFlags> for StencilFaceFlags
impl BitOrAssign<StencilFaceFlags> for StencilFaceFlags
sourcefn bitor_assign(&mut self, rhs: StencilFaceFlags)
fn bitor_assign(&mut self, rhs: StencilFaceFlags)
Performs the |= operation. Read more
sourceimpl BitXor<StencilFaceFlags> for StencilFaceFlags
impl BitXor<StencilFaceFlags> for StencilFaceFlags
type Output = StencilFaceFlags
type Output = StencilFaceFlags
The resulting type after applying the ^ operator.
sourcefn bitxor(self, rhs: StencilFaceFlags) -> StencilFaceFlags
fn bitxor(self, rhs: StencilFaceFlags) -> StencilFaceFlags
Performs the ^ operation. Read more
sourceimpl BitXorAssign<StencilFaceFlags> for StencilFaceFlags
impl BitXorAssign<StencilFaceFlags> for StencilFaceFlags
sourcefn bitxor_assign(&mut self, rhs: StencilFaceFlags)
fn bitxor_assign(&mut self, rhs: StencilFaceFlags)
Performs the ^= operation. Read more
sourceimpl Clone for StencilFaceFlags
impl Clone for StencilFaceFlags
sourcefn clone(&self) -> StencilFaceFlags
fn clone(&self) -> StencilFaceFlags
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 StencilFaceFlags
impl Debug for StencilFaceFlags
sourceimpl Default for StencilFaceFlags
impl Default for StencilFaceFlags
sourcefn default() -> StencilFaceFlags
fn default() -> StencilFaceFlags
Returns the “default value” for a type. Read more
sourceimpl Hash for StencilFaceFlags
impl Hash for StencilFaceFlags
sourceimpl Not for StencilFaceFlags
impl Not for StencilFaceFlags
type Output = StencilFaceFlags
type Output = StencilFaceFlags
The resulting type after applying the ! operator.
sourcefn not(self) -> StencilFaceFlags
fn not(self) -> StencilFaceFlags
Performs the unary ! operation. Read more
sourceimpl Ord for StencilFaceFlags
impl Ord for StencilFaceFlags
sourceimpl PartialEq<StencilFaceFlags> for StencilFaceFlags
impl PartialEq<StencilFaceFlags> for StencilFaceFlags
sourcefn eq(&self, other: &StencilFaceFlags) -> bool
fn eq(&self, other: &StencilFaceFlags) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StencilFaceFlags) -> bool
fn ne(&self, other: &StencilFaceFlags) -> bool
This method tests for !=.
sourceimpl PartialOrd<StencilFaceFlags> for StencilFaceFlags
impl PartialOrd<StencilFaceFlags> for StencilFaceFlags
sourcefn partial_cmp(&self, other: &StencilFaceFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &StencilFaceFlags) -> 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 StencilFaceFlags
impl Eq for StencilFaceFlags
impl StructuralEq for StencilFaceFlags
impl StructuralPartialEq for StencilFaceFlags
Auto Trait Implementations
impl RefUnwindSafe for StencilFaceFlags
impl Send for StencilFaceFlags
impl Sync for StencilFaceFlags
impl Unpin for StencilFaceFlags
impl UnwindSafe for StencilFaceFlags
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