Struct vulkano::swapchain::SupportedSurfaceTransforms
source · [−]pub struct SupportedSurfaceTransforms {
pub identity: bool,
pub rotate90: bool,
pub rotate180: bool,
pub rotate270: bool,
pub horizontal_mirror: bool,
pub horizontal_mirror_rotate90: bool,
pub horizontal_mirror_rotate180: bool,
pub horizontal_mirror_rotate270: bool,
pub inherit: bool,
pub _ne: NonExhaustive,
}
Expand description
List of supported composite alpha modes.
Fields
identity: bool
rotate90: bool
rotate180: bool
rotate270: bool
horizontal_mirror: bool
horizontal_mirror_rotate90: bool
horizontal_mirror_rotate180: bool
horizontal_mirror_rotate270: bool
inherit: bool
_ne: NonExhaustive
Implementations
sourceimpl SupportedSurfaceTransforms
impl SupportedSurfaceTransforms
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a SupportedSurfaceTransforms
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 set in self
or other
, but not both.
sourceimpl SupportedSurfaceTransforms
impl SupportedSurfaceTransforms
sourcepub fn supports(&self, value: SurfaceTransform) -> bool
pub fn supports(&self, value: SurfaceTransform) -> bool
Returns true if the given SurfaceTransform
is in this list.
sourcepub fn iter(&self) -> impl Iterator<Item = SurfaceTransform>
pub fn iter(&self) -> impl Iterator<Item = SurfaceTransform>
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl BitAnd<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitAnd<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitAndAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitOr<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitOrAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitXor<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl BitXorAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for SupportedSurfaceTransforms
impl Clone for SupportedSurfaceTransforms
sourcefn clone(&self) -> SupportedSurfaceTransforms
fn clone(&self) -> SupportedSurfaceTransforms
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SupportedSurfaceTransforms
impl Debug for SupportedSurfaceTransforms
sourceimpl Default for SupportedSurfaceTransforms
impl Default for SupportedSurfaceTransforms
sourceimpl From<SupportedSurfaceTransforms> for SurfaceTransformFlagsKHR
impl From<SupportedSurfaceTransforms> for SurfaceTransformFlagsKHR
sourcefn from(val: SupportedSurfaceTransforms) -> Self
fn from(val: SupportedSurfaceTransforms) -> Self
Converts to this type from the input type.
sourceimpl From<SurfaceTransformFlagsKHR> for SupportedSurfaceTransforms
impl From<SurfaceTransformFlagsKHR> for SupportedSurfaceTransforms
sourcefn from(val: SurfaceTransformFlagsKHR) -> Self
fn from(val: SurfaceTransformFlagsKHR) -> Self
Converts to this type from the input type.
sourceimpl Hash for SupportedSurfaceTransforms
impl Hash for SupportedSurfaceTransforms
sourceimpl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn eq(&self, other: &SupportedSurfaceTransforms) -> bool
fn eq(&self, other: &SupportedSurfaceTransforms) -> bool
sourceimpl Sub<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl Sub<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
type Output = SupportedSurfaceTransforms
The resulting type after applying the
-
operator.sourceimpl SubAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl SubAssign<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SupportedSurfaceTransforms
impl Eq for SupportedSurfaceTransforms
impl StructuralEq for SupportedSurfaceTransforms
impl StructuralPartialEq for SupportedSurfaceTransforms
Auto Trait Implementations
impl RefUnwindSafe for SupportedSurfaceTransforms
impl Send for SupportedSurfaceTransforms
impl Sync for SupportedSurfaceTransforms
impl Unpin for SupportedSurfaceTransforms
impl UnwindSafe for SupportedSurfaceTransforms
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more