Struct vulkano::swapchain::SurfaceTransforms
source · pub struct SurfaceTransforms(/* private fields */);
Expand description
A set of SurfaceTransform
values.
Implementations§
source§impl SurfaceTransforms
impl SurfaceTransforms
sourcepub const ROTATE_180: Self = _
pub const ROTATE_180: Self = _
Rotate 180 degrees.
sourcepub const ROTATE_270: Self = _
pub const ROTATE_270: Self = _
Rotate 270 degrees.
sourcepub const HORIZONTAL_MIRROR: Self = _
pub const HORIZONTAL_MIRROR: Self = _
Mirror the image horizontally.
sourcepub const HORIZONTAL_MIRROR_ROTATE_90: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_90: Self = _
Mirror the image horizontally and rotate 90 degrees.
sourcepub const HORIZONTAL_MIRROR_ROTATE_180: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_180: Self = _
Mirror the image horizontally and rotate 180 degrees.
sourcepub const HORIZONTAL_MIRROR_ROTATE_270: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_270: Self = _
Mirror the image horizontally and rotate 270 degrees.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a SurfaceTransforms
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: SurfaceTransform) -> bool
pub fn contains_enum(self, val: SurfaceTransform) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for SurfaceTransforms
impl BitAnd for SurfaceTransforms
source§impl BitAndAssign for SurfaceTransforms
impl BitAndAssign for SurfaceTransforms
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SurfaceTransforms
impl BitOr for SurfaceTransforms
source§impl BitOrAssign for SurfaceTransforms
impl BitOrAssign for SurfaceTransforms
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SurfaceTransforms
impl BitXor for SurfaceTransforms
source§impl BitXorAssign for SurfaceTransforms
impl BitXorAssign for SurfaceTransforms
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SurfaceTransforms
impl Clone for SurfaceTransforms
source§fn clone(&self) -> SurfaceTransforms
fn clone(&self) -> SurfaceTransforms
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 SurfaceTransforms
impl Debug for SurfaceTransforms
source§impl Default for SurfaceTransforms
impl Default for SurfaceTransforms
source§impl From<SurfaceTransform> for SurfaceTransforms
impl From<SurfaceTransform> for SurfaceTransforms
source§fn from(val: SurfaceTransform) -> Self
fn from(val: SurfaceTransform) -> Self
Converts to this type from the input type.
source§impl From<SurfaceTransformFlagsKHR> for SurfaceTransforms
impl From<SurfaceTransformFlagsKHR> for SurfaceTransforms
source§fn from(val: SurfaceTransformFlagsKHR) -> Self
fn from(val: SurfaceTransformFlagsKHR) -> Self
Converts to this type from the input type.
source§impl From<SurfaceTransforms> for SurfaceTransformFlagsKHR
impl From<SurfaceTransforms> for SurfaceTransformFlagsKHR
source§fn from(val: SurfaceTransforms) -> Self
fn from(val: SurfaceTransforms) -> Self
Converts to this type from the input type.
source§impl FromIterator<SurfaceTransform> for SurfaceTransforms
impl FromIterator<SurfaceTransform> for SurfaceTransforms
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SurfaceTransform>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = SurfaceTransform>,
Creates a value from an iterator. Read more
source§impl Hash for SurfaceTransforms
impl Hash for SurfaceTransforms
source§impl IntoIterator for SurfaceTransforms
impl IntoIterator for SurfaceTransforms
§type Item = SurfaceTransform
type Item = SurfaceTransform
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<SurfaceTransforms as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<SurfaceTransforms as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq for SurfaceTransforms
impl PartialEq for SurfaceTransforms
source§fn eq(&self, other: &SurfaceTransforms) -> bool
fn eq(&self, other: &SurfaceTransforms) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SurfaceTransforms
impl Sub for SurfaceTransforms
source§impl SubAssign for SurfaceTransforms
impl SubAssign for SurfaceTransforms
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SurfaceTransforms
impl Eq for SurfaceTransforms
impl StructuralEq for SurfaceTransforms
impl StructuralPartialEq for SurfaceTransforms
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceTransforms
impl Send for SurfaceTransforms
impl Sync for SurfaceTransforms
impl Unpin for SurfaceTransforms
impl UnwindSafe for SurfaceTransforms
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