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

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

impl BitOr<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

impl BitOrAssign<DepthStencilFlags> for DepthStencilFlags

fn bitor_assign(&mut self, other: DepthStencilFlags)

impl BitXor<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

impl BitXorAssign<DepthStencilFlags> for DepthStencilFlags

fn bitxor_assign(&mut self, other: DepthStencilFlags)

impl BitAnd<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

impl BitAndAssign<DepthStencilFlags> for DepthStencilFlags

fn bitand_assign(&mut self, other: DepthStencilFlags)

impl Sub<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

impl SubAssign<DepthStencilFlags> 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>(iterator: T) -> DepthStencilFlags where T: IntoIterator<Item=DepthStencilFlags>

Derived Implementations

impl Hash for DepthStencilFlags

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

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

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

impl Eq for DepthStencilFlags

impl PartialEq<DepthStencilFlags> for DepthStencilFlags

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

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

impl Copy for DepthStencilFlags