Struct gfx::tex::DepthStencilFlags
[−]
[src]
pub struct DepthStencilFlags { // some fields omitted }
Depth-stencil read-only flags
Methods
impl DepthStencilFlags
fn empty() -> DepthStencilFlags
Returns an empty set of flags.
fn all() -> DepthStencilFlags
Returns the set containing all flags.
fn bits(&self) -> u8
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<DepthStencilFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u8) -> DepthStencilFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: DepthStencilFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: DepthStencilFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: DepthStencilFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: DepthStencilFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: DepthStencilFlags)
Toggles the specified flags in-place.
Trait Implementations
impl Hash for DepthStencilFlags
impl Ord for DepthStencilFlags
fn cmp(&self, __arg_0: &DepthStencilFlags) -> Ordering
impl PartialOrd<DepthStencilFlags> for DepthStencilFlags
fn partial_cmp(&self, __arg_0: &DepthStencilFlags) -> Option<Ordering>
fn lt(&self, __arg_0: &DepthStencilFlags) -> bool
fn le(&self, __arg_0: &DepthStencilFlags) -> bool
fn gt(&self, __arg_0: &DepthStencilFlags) -> bool
fn ge(&self, __arg_0: &DepthStencilFlags) -> bool
impl Clone for DepthStencilFlags
fn clone(&self) -> DepthStencilFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for DepthStencilFlags
impl PartialEq<DepthStencilFlags> for DepthStencilFlags
fn eq(&self, __arg_0: &DepthStencilFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DepthStencilFlags) -> bool
This method tests for !=
.
impl Copy for DepthStencilFlags
impl Debug for DepthStencilFlags
impl BitOr<DepthStencilFlags> for DepthStencilFlags
type Output = DepthStencilFlags
fn bitor(self, other: DepthStencilFlags) -> DepthStencilFlags
Returns the union of the two sets of flags.
impl BitOrAssign<DepthStencilFlags> for DepthStencilFlags
fn bitor_assign(&mut self, other: DepthStencilFlags)
Adds the set of flags.
impl BitXor<DepthStencilFlags> for DepthStencilFlags
type Output = DepthStencilFlags
fn bitxor(self, other: DepthStencilFlags) -> DepthStencilFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<DepthStencilFlags> for DepthStencilFlags
fn bitxor_assign(&mut self, other: DepthStencilFlags)
Toggles the set of flags.
impl BitAnd<DepthStencilFlags> for DepthStencilFlags
type Output = DepthStencilFlags
fn bitand(self, other: DepthStencilFlags) -> DepthStencilFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign<DepthStencilFlags> for DepthStencilFlags
fn bitand_assign(&mut self, other: DepthStencilFlags)
Disables all flags disabled in the set.
impl Sub<DepthStencilFlags> for DepthStencilFlags
type Output = DepthStencilFlags
fn sub(self, other: DepthStencilFlags) -> DepthStencilFlags
Returns the set difference of the two sets of flags.
impl SubAssign<DepthStencilFlags> for DepthStencilFlags
fn sub_assign(&mut self, other: DepthStencilFlags)
Disables all flags enabled in the set.
impl Not for DepthStencilFlags
type Output = DepthStencilFlags
fn not(self) -> DepthStencilFlags
Returns the complement of this set of flags.