Struct vulkanalia::vk::FramebufferCreateFlags
source · #[repr(transparent)]pub struct FramebufferCreateFlags { /* private fields */ }
Expand description
Implementations§
source§impl FramebufferCreateFlags
impl FramebufferCreateFlags
pub const IMAGELESS: FramebufferCreateFlags = _
sourcepub const fn empty() -> FramebufferCreateFlags
pub const fn empty() -> FramebufferCreateFlags
Returns an empty set of flags.
sourcepub const fn all() -> FramebufferCreateFlags
pub const fn all() -> FramebufferCreateFlags
Returns the set containing all flags.
sourcepub const fn from_bits(bits: u32) -> Option<FramebufferCreateFlags>
pub const fn from_bits(bits: u32) -> Option<FramebufferCreateFlags>
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) -> FramebufferCreateFlags
pub const fn from_bits_truncate(bits: u32) -> FramebufferCreateFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FramebufferCreateFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> FramebufferCreateFlags
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: FramebufferCreateFlags) -> bool
pub const fn intersects(&self, other: FramebufferCreateFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: FramebufferCreateFlags) -> bool
pub const fn contains(&self, other: FramebufferCreateFlags) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: FramebufferCreateFlags)
pub fn insert(&mut self, other: FramebufferCreateFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: FramebufferCreateFlags)
pub fn remove(&mut self, other: FramebufferCreateFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: FramebufferCreateFlags)
pub fn toggle(&mut self, other: FramebufferCreateFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: FramebufferCreateFlags, value: bool)
pub fn set(&mut self, other: FramebufferCreateFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(
self,
other: FramebufferCreateFlags
) -> FramebufferCreateFlags
pub const fn intersection( self, other: FramebufferCreateFlags ) -> FramebufferCreateFlags
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: FramebufferCreateFlags
) -> FramebufferCreateFlags
pub const fn union( self, other: FramebufferCreateFlags ) -> FramebufferCreateFlags
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: FramebufferCreateFlags
) -> FramebufferCreateFlags
pub const fn difference( self, other: FramebufferCreateFlags ) -> FramebufferCreateFlags
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: FramebufferCreateFlags
) -> FramebufferCreateFlags
pub const fn symmetric_difference( self, other: FramebufferCreateFlags ) -> FramebufferCreateFlags
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) -> FramebufferCreateFlags
pub const fn complement(self) -> FramebufferCreateFlags
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 FramebufferCreateFlags
impl Binary for FramebufferCreateFlags
source§impl BitAnd<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitAnd<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitand(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
fn bitand(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
Returns the intersection between the two sets of flags.
§type Output = FramebufferCreateFlags
type Output = FramebufferCreateFlags
&
operator.source§impl BitAndAssign<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitAndAssign<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitand_assign(&mut self, other: FramebufferCreateFlags)
fn bitand_assign(&mut self, other: FramebufferCreateFlags)
Disables all flags disabled in the set.
source§impl BitOr<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitOr<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitor(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
fn bitor(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
Returns the union of the two sets of flags.
§type Output = FramebufferCreateFlags
type Output = FramebufferCreateFlags
|
operator.source§impl BitOrAssign<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitOrAssign<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitor_assign(&mut self, other: FramebufferCreateFlags)
fn bitor_assign(&mut self, other: FramebufferCreateFlags)
Adds the set of flags.
source§impl BitXor<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitXor<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitxor(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
fn bitxor(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
Returns the left flags, but with all the right flags toggled.
§type Output = FramebufferCreateFlags
type Output = FramebufferCreateFlags
^
operator.source§impl BitXorAssign<FramebufferCreateFlags> for FramebufferCreateFlags
impl BitXorAssign<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn bitxor_assign(&mut self, other: FramebufferCreateFlags)
fn bitxor_assign(&mut self, other: FramebufferCreateFlags)
Toggles the set of flags.
source§impl Clone for FramebufferCreateFlags
impl Clone for FramebufferCreateFlags
source§fn clone(&self) -> FramebufferCreateFlags
fn clone(&self) -> FramebufferCreateFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FramebufferCreateFlags
impl Debug for FramebufferCreateFlags
source§impl Default for FramebufferCreateFlags
impl Default for FramebufferCreateFlags
source§fn default() -> FramebufferCreateFlags
fn default() -> FramebufferCreateFlags
source§impl Extend<FramebufferCreateFlags> for FramebufferCreateFlags
impl Extend<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = FramebufferCreateFlags>,
fn extend<T>(&mut self, iterator: T)where T: IntoIterator<Item = FramebufferCreateFlags>,
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<FramebufferCreateFlags> for FramebufferCreateFlags
impl FromIterator<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn from_iter<T>(iterator: T) -> FramebufferCreateFlagswhere
T: IntoIterator<Item = FramebufferCreateFlags>,
fn from_iter<T>(iterator: T) -> FramebufferCreateFlagswhere T: IntoIterator<Item = FramebufferCreateFlags>,
source§impl Hash for FramebufferCreateFlags
impl Hash for FramebufferCreateFlags
source§impl LowerHex for FramebufferCreateFlags
impl LowerHex for FramebufferCreateFlags
source§impl Not for FramebufferCreateFlags
impl Not for FramebufferCreateFlags
source§fn not(self) -> FramebufferCreateFlags
fn not(self) -> FramebufferCreateFlags
Returns the complement of this set of flags.
§type Output = FramebufferCreateFlags
type Output = FramebufferCreateFlags
!
operator.source§impl Octal for FramebufferCreateFlags
impl Octal for FramebufferCreateFlags
source§impl Ord for FramebufferCreateFlags
impl Ord for FramebufferCreateFlags
source§fn cmp(&self, other: &FramebufferCreateFlags) -> Ordering
fn cmp(&self, other: &FramebufferCreateFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<FramebufferCreateFlags> for FramebufferCreateFlags
impl PartialEq<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn eq(&self, other: &FramebufferCreateFlags) -> bool
fn eq(&self, other: &FramebufferCreateFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FramebufferCreateFlags> for FramebufferCreateFlags
impl PartialOrd<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn partial_cmp(&self, other: &FramebufferCreateFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &FramebufferCreateFlags) -> 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<FramebufferCreateFlags> for FramebufferCreateFlags
impl Sub<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn sub(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
fn sub(self, other: FramebufferCreateFlags) -> FramebufferCreateFlags
Returns the set difference of the two sets of flags.
§type Output = FramebufferCreateFlags
type Output = FramebufferCreateFlags
-
operator.source§impl SubAssign<FramebufferCreateFlags> for FramebufferCreateFlags
impl SubAssign<FramebufferCreateFlags> for FramebufferCreateFlags
source§fn sub_assign(&mut self, other: FramebufferCreateFlags)
fn sub_assign(&mut self, other: FramebufferCreateFlags)
Disables all flags enabled in the set.