Struct gfx::texture::DepthStencilFlags
[−]
[src]
pub struct DepthStencilFlags { /* fields omitted */ }
Depth-stencil read-only flags
Methods
impl DepthStencilFlags
[src]
const RO_DEPTH: DepthStencilFlags
RO_DEPTH: DepthStencilFlags = DepthStencilFlags{bits: 1,}
const RO_STENCIL: DepthStencilFlags
RO_STENCIL: DepthStencilFlags = DepthStencilFlags{bits: 2,}
const RO_DEPTH_STENCIL: DepthStencilFlags
RO_DEPTH_STENCIL: DepthStencilFlags = DepthStencilFlags{bits: 3,}
fn empty() -> DepthStencilFlags
[src]
Returns an empty set of flags.
fn all() -> DepthStencilFlags
[src]
Returns the set containing all flags.
fn bits(&self) -> u8
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<DepthStencilFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u8) -> DepthStencilFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: DepthStencilFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: DepthStencilFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: DepthStencilFlags)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: DepthStencilFlags)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: DepthStencilFlags)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: DepthStencilFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for DepthStencilFlags
[src]
fn cmp(&self, __arg_0: &DepthStencilFlags) -> Ordering
[src]
impl Copy for DepthStencilFlags
[src]
impl Clone for DepthStencilFlags
[src]
fn clone(&self) -> DepthStencilFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BitAndAssign<DepthStencilFlags> for DepthStencilFlags
[src]
fn bitand_assign(&mut self, other: DepthStencilFlags)
[src]
Disables all flags disabled in the set.
impl BitAnd<DepthStencilFlags> for DepthStencilFlags
[src]
type Output = DepthStencilFlags
fn bitand(self, other: DepthStencilFlags) -> DepthStencilFlags
[src]
Returns the intersection between the two sets of flags.
impl UpperHex for DepthStencilFlags
[src]
impl PartialOrd<DepthStencilFlags> for DepthStencilFlags
[src]
fn partial_cmp(&self, __arg_0: &DepthStencilFlags) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
fn le(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
fn gt(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
fn ge(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
impl Hash for DepthStencilFlags
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Not for DepthStencilFlags
[src]
type Output = DepthStencilFlags
fn not(self) -> DepthStencilFlags
[src]
Returns the complement of this set of flags.
impl BitXor<DepthStencilFlags> for DepthStencilFlags
[src]
type Output = DepthStencilFlags
fn bitxor(self, other: DepthStencilFlags) -> DepthStencilFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<DepthStencilFlags> for DepthStencilFlags
[src]
type Output = DepthStencilFlags
fn bitor(self, other: DepthStencilFlags) -> DepthStencilFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<DepthStencilFlags> for DepthStencilFlags
[src]
fn bitor_assign(&mut self, other: DepthStencilFlags)
[src]
Adds the set of flags.
impl Octal for DepthStencilFlags
[src]
impl PartialEq<DepthStencilFlags> for DepthStencilFlags
[src]
fn eq(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DepthStencilFlags) -> bool
[src]
This method tests for !=
.
impl Debug for DepthStencilFlags
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<DepthStencilFlags> for DepthStencilFlags
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = DepthStencilFlags>,
[src]
T: IntoIterator<Item = DepthStencilFlags>,
impl SubAssign<DepthStencilFlags> for DepthStencilFlags
[src]
fn sub_assign(&mut self, other: DepthStencilFlags)
[src]
Disables all flags enabled in the set.
impl BitXorAssign<DepthStencilFlags> for DepthStencilFlags
[src]
fn bitxor_assign(&mut self, other: DepthStencilFlags)
[src]
Toggles the set of flags.
impl Eq for DepthStencilFlags
[src]
impl Binary for DepthStencilFlags
[src]
impl FromIterator<DepthStencilFlags> for DepthStencilFlags
[src]
fn from_iter<T>(iterator: T) -> DepthStencilFlags where
T: IntoIterator<Item = DepthStencilFlags>,
[src]
T: IntoIterator<Item = DepthStencilFlags>,
impl LowerHex for DepthStencilFlags
[src]
impl Sub<DepthStencilFlags> for DepthStencilFlags
[src]
type Output = DepthStencilFlags
fn sub(self, other: DepthStencilFlags) -> DepthStencilFlags
[src]
Returns the set difference of the two sets of flags.