Struct gfx_core::tex::DepthStencilFlags []

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 Debug for DepthStencilFlags

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for DepthStencilFlags

type Output = DepthStencilFlags

fn bitor(self, other: DepthStencilFlags) -> DepthStencilFlags

impl BitOrAssign for DepthStencilFlags

fn bitor_assign(&mut self, other: DepthStencilFlags)

impl BitXor for DepthStencilFlags

type Output = DepthStencilFlags

fn bitxor(self, other: DepthStencilFlags) -> DepthStencilFlags

impl BitXorAssign for DepthStencilFlags

fn bitxor_assign(&mut self, other: DepthStencilFlags)

impl BitAnd for DepthStencilFlags

type Output = DepthStencilFlags

fn bitand(self, other: DepthStencilFlags) -> DepthStencilFlags

impl BitAndAssign for DepthStencilFlags

fn bitand_assign(&mut self, other: DepthStencilFlags)

impl Sub for DepthStencilFlags

type Output = DepthStencilFlags

fn sub(self, other: DepthStencilFlags) -> DepthStencilFlags

impl SubAssign for DepthStencilFlags

fn sub_assign(&mut self, other: DepthStencilFlags)

impl Not for DepthStencilFlags

type Output = DepthStencilFlags

fn not(self) -> DepthStencilFlags

impl FromIterator<DepthStencilFlags> for DepthStencilFlags

fn from_iter<T: IntoIterator<Item=DepthStencilFlags>>(iterator: T) -> DepthStencilFlags

Derived Implementations

impl Hash for DepthStencilFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for DepthStencilFlags

fn cmp(&self, __arg_0: &DepthStencilFlags) -> Ordering

impl PartialOrd 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

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for DepthStencilFlags

impl PartialEq for DepthStencilFlags

fn eq(&self, __arg_0: &DepthStencilFlags) -> bool

fn ne(&self, __arg_0: &DepthStencilFlags) -> bool

impl Copy for DepthStencilFlags