Struct vulkanalia::vk::IndirectStateFlagsNV
source · pub struct IndirectStateFlagsNV { /* private fields */ }
Expand description
Implementations§
source§impl IndirectStateFlagsNV
impl IndirectStateFlagsNV
pub const FLAG_FRONTFACE: IndirectStateFlagsNV = _
sourcepub const fn empty() -> IndirectStateFlagsNV
pub const fn empty() -> IndirectStateFlagsNV
Returns an empty set of flags.
sourcepub const fn all() -> IndirectStateFlagsNV
pub const fn all() -> IndirectStateFlagsNV
Returns the set containing all flags.
sourcepub const fn from_bits(bits: u32) -> Option<IndirectStateFlagsNV>
pub const fn from_bits(bits: u32) -> Option<IndirectStateFlagsNV>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> IndirectStateFlagsNV
pub const fn from_bits_truncate(bits: u32) -> IndirectStateFlagsNV
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> IndirectStateFlagsNV
pub const unsafe fn from_bits_unchecked(bits: u32) -> IndirectStateFlagsNV
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
§Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: IndirectStateFlagsNV) -> bool
pub const fn intersects(&self, other: IndirectStateFlagsNV) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: IndirectStateFlagsNV) -> bool
pub const fn contains(&self, other: IndirectStateFlagsNV) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: IndirectStateFlagsNV)
pub fn insert(&mut self, other: IndirectStateFlagsNV)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: IndirectStateFlagsNV)
pub fn remove(&mut self, other: IndirectStateFlagsNV)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: IndirectStateFlagsNV)
pub fn toggle(&mut self, other: IndirectStateFlagsNV)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: IndirectStateFlagsNV, value: bool)
pub fn set(&mut self, other: IndirectStateFlagsNV, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(
self,
other: IndirectStateFlagsNV
) -> IndirectStateFlagsNV
pub const fn intersection( self, other: IndirectStateFlagsNV ) -> IndirectStateFlagsNV
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
pub const fn union(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(
self,
other: IndirectStateFlagsNV
) -> IndirectStateFlagsNV
pub const fn difference( self, other: IndirectStateFlagsNV ) -> IndirectStateFlagsNV
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(
self,
other: IndirectStateFlagsNV
) -> IndirectStateFlagsNV
pub const fn symmetric_difference( self, other: IndirectStateFlagsNV ) -> IndirectStateFlagsNV
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> IndirectStateFlagsNV
pub const fn complement(self) -> IndirectStateFlagsNV
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations§
source§impl Binary for IndirectStateFlagsNV
impl Binary for IndirectStateFlagsNV
source§impl BitAnd for IndirectStateFlagsNV
impl BitAnd for IndirectStateFlagsNV
source§fn bitand(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
fn bitand(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
Returns the intersection between the two sets of flags.
§type Output = IndirectStateFlagsNV
type Output = IndirectStateFlagsNV
&
operator.source§impl BitAndAssign for IndirectStateFlagsNV
impl BitAndAssign for IndirectStateFlagsNV
source§fn bitand_assign(&mut self, other: IndirectStateFlagsNV)
fn bitand_assign(&mut self, other: IndirectStateFlagsNV)
Disables all flags disabled in the set.
source§impl BitOr for IndirectStateFlagsNV
impl BitOr for IndirectStateFlagsNV
source§fn bitor(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
fn bitor(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
Returns the union of the two sets of flags.
§type Output = IndirectStateFlagsNV
type Output = IndirectStateFlagsNV
|
operator.source§impl BitOrAssign for IndirectStateFlagsNV
impl BitOrAssign for IndirectStateFlagsNV
source§fn bitor_assign(&mut self, other: IndirectStateFlagsNV)
fn bitor_assign(&mut self, other: IndirectStateFlagsNV)
Adds the set of flags.
source§impl BitXor for IndirectStateFlagsNV
impl BitXor for IndirectStateFlagsNV
source§fn bitxor(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
fn bitxor(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
Returns the left flags, but with all the right flags toggled.
§type Output = IndirectStateFlagsNV
type Output = IndirectStateFlagsNV
^
operator.source§impl BitXorAssign for IndirectStateFlagsNV
impl BitXorAssign for IndirectStateFlagsNV
source§fn bitxor_assign(&mut self, other: IndirectStateFlagsNV)
fn bitxor_assign(&mut self, other: IndirectStateFlagsNV)
Toggles the set of flags.
source§impl Clone for IndirectStateFlagsNV
impl Clone for IndirectStateFlagsNV
source§fn clone(&self) -> IndirectStateFlagsNV
fn clone(&self) -> IndirectStateFlagsNV
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndirectStateFlagsNV
impl Debug for IndirectStateFlagsNV
source§impl Default for IndirectStateFlagsNV
impl Default for IndirectStateFlagsNV
source§fn default() -> IndirectStateFlagsNV
fn default() -> IndirectStateFlagsNV
source§impl Extend<IndirectStateFlagsNV> for IndirectStateFlagsNV
impl Extend<IndirectStateFlagsNV> for IndirectStateFlagsNV
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = IndirectStateFlagsNV>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = IndirectStateFlagsNV>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<IndirectStateFlagsNV> for IndirectStateFlagsNV
impl FromIterator<IndirectStateFlagsNV> for IndirectStateFlagsNV
source§fn from_iter<T>(iterator: T) -> IndirectStateFlagsNVwhere
T: IntoIterator<Item = IndirectStateFlagsNV>,
fn from_iter<T>(iterator: T) -> IndirectStateFlagsNVwhere
T: IntoIterator<Item = IndirectStateFlagsNV>,
source§impl Hash for IndirectStateFlagsNV
impl Hash for IndirectStateFlagsNV
source§impl LowerHex for IndirectStateFlagsNV
impl LowerHex for IndirectStateFlagsNV
source§impl Not for IndirectStateFlagsNV
impl Not for IndirectStateFlagsNV
source§fn not(self) -> IndirectStateFlagsNV
fn not(self) -> IndirectStateFlagsNV
Returns the complement of this set of flags.
§type Output = IndirectStateFlagsNV
type Output = IndirectStateFlagsNV
!
operator.source§impl Octal for IndirectStateFlagsNV
impl Octal for IndirectStateFlagsNV
source§impl Ord for IndirectStateFlagsNV
impl Ord for IndirectStateFlagsNV
source§fn cmp(&self, other: &IndirectStateFlagsNV) -> Ordering
fn cmp(&self, other: &IndirectStateFlagsNV) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for IndirectStateFlagsNV
impl PartialEq for IndirectStateFlagsNV
source§fn eq(&self, other: &IndirectStateFlagsNV) -> bool
fn eq(&self, other: &IndirectStateFlagsNV) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IndirectStateFlagsNV
impl PartialOrd for IndirectStateFlagsNV
source§fn partial_cmp(&self, other: &IndirectStateFlagsNV) -> Option<Ordering>
fn partial_cmp(&self, other: &IndirectStateFlagsNV) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for IndirectStateFlagsNV
impl Sub for IndirectStateFlagsNV
source§fn sub(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
fn sub(self, other: IndirectStateFlagsNV) -> IndirectStateFlagsNV
Returns the set difference of the two sets of flags.
§type Output = IndirectStateFlagsNV
type Output = IndirectStateFlagsNV
-
operator.source§impl SubAssign for IndirectStateFlagsNV
impl SubAssign for IndirectStateFlagsNV
source§fn sub_assign(&mut self, other: IndirectStateFlagsNV)
fn sub_assign(&mut self, other: IndirectStateFlagsNV)
Disables all flags enabled in the set.