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