Struct vulkano::swapchain::PresentGravityFlags
source · pub struct PresentGravityFlags(/* private fields */);
Expand description
A set of PresentGravity
values.
Implementations§
source§impl PresentGravityFlags
impl PresentGravityFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a PresentGravityFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: PresentGravity) -> bool
pub fn contains_enum(self, val: PresentGravity) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for PresentGravityFlags
impl BitAnd for PresentGravityFlags
source§impl BitAndAssign for PresentGravityFlags
impl BitAndAssign for PresentGravityFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for PresentGravityFlags
impl BitOr for PresentGravityFlags
source§impl BitOrAssign for PresentGravityFlags
impl BitOrAssign for PresentGravityFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for PresentGravityFlags
impl BitXor for PresentGravityFlags
source§impl BitXorAssign for PresentGravityFlags
impl BitXorAssign for PresentGravityFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for PresentGravityFlags
impl Clone for PresentGravityFlags
source§fn clone(&self) -> PresentGravityFlags
fn clone(&self) -> PresentGravityFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PresentGravityFlags
impl Debug for PresentGravityFlags
source§impl Default for PresentGravityFlags
impl Default for PresentGravityFlags
source§impl From<PresentGravity> for PresentGravityFlags
impl From<PresentGravity> for PresentGravityFlags
source§fn from(val: PresentGravity) -> Self
fn from(val: PresentGravity) -> Self
Converts to this type from the input type.
source§impl From<PresentGravityFlags> for PresentGravityFlagsEXT
impl From<PresentGravityFlags> for PresentGravityFlagsEXT
source§fn from(val: PresentGravityFlags) -> Self
fn from(val: PresentGravityFlags) -> Self
Converts to this type from the input type.
source§impl From<PresentGravityFlagsEXT> for PresentGravityFlags
impl From<PresentGravityFlagsEXT> for PresentGravityFlags
source§fn from(val: PresentGravityFlagsEXT) -> Self
fn from(val: PresentGravityFlagsEXT) -> Self
Converts to this type from the input type.
source§impl FromIterator<PresentGravity> for PresentGravityFlags
impl FromIterator<PresentGravity> for PresentGravityFlags
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = PresentGravity>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = PresentGravity>,
Creates a value from an iterator. Read more
source§impl Hash for PresentGravityFlags
impl Hash for PresentGravityFlags
source§impl IntoIterator for PresentGravityFlags
impl IntoIterator for PresentGravityFlags
§type Item = PresentGravity
type Item = PresentGravity
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<PresentGravityFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<PresentGravityFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq for PresentGravityFlags
impl PartialEq for PresentGravityFlags
source§fn eq(&self, other: &PresentGravityFlags) -> bool
fn eq(&self, other: &PresentGravityFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for PresentGravityFlags
impl Sub for PresentGravityFlags
source§impl SubAssign for PresentGravityFlags
impl SubAssign for PresentGravityFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for PresentGravityFlags
impl Eq for PresentGravityFlags
impl StructuralEq for PresentGravityFlags
impl StructuralPartialEq for PresentGravityFlags
Auto Trait Implementations§
impl RefUnwindSafe for PresentGravityFlags
impl Send for PresentGravityFlags
impl Sync for PresentGravityFlags
impl Unpin for PresentGravityFlags
impl UnwindSafe for PresentGravityFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more