[go: up one dir, main page]

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

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

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

Formats the value using the given formatter.

impl BitOr<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

Returns the union of the two sets 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 BitAnd<DepthStencilFlags> for DepthStencilFlags

type Output = DepthStencilFlags

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

Returns the intersection between the two sets of flags.

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

type Output = DepthStencilFlags

fn not(self) -> DepthStencilFlags

Returns the complement of this set of flags.

impl FromIterator<DepthStencilFlags> for DepthStencilFlags

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