Struct vulkano::swapchain::SupportedCompositeAlpha
source · [−]pub struct SupportedCompositeAlpha {
pub opaque: bool,
pub pre_multiplied: bool,
pub post_multiplied: bool,
pub inherit: bool,
pub _ne: NonExhaustive,
}
Expand description
List of supported composite alpha modes.
See the docs of CompositeAlpha
.
Fields
opaque: bool
pre_multiplied: bool
post_multiplied: bool
inherit: bool
_ne: NonExhaustive
Implementations
sourceimpl SupportedCompositeAlpha
impl SupportedCompositeAlpha
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a SupportedCompositeAlpha
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 SupportedCompositeAlpha
impl SupportedCompositeAlpha
sourcepub fn supports(&self, value: CompositeAlpha) -> bool
pub fn supports(&self, value: CompositeAlpha) -> bool
Returns true if the given CompositeAlpha
is in this list.
sourcepub fn iter(&self) -> impl Iterator<Item = CompositeAlpha>
pub fn iter(&self) -> impl Iterator<Item = CompositeAlpha>
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl BitAnd<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitAnd<SupportedCompositeAlpha> for SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitAndAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitOr<SupportedCompositeAlpha> for SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitOrAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitXor<SupportedCompositeAlpha> for SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl BitXorAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for SupportedCompositeAlpha
impl Clone for SupportedCompositeAlpha
sourcefn clone(&self) -> SupportedCompositeAlpha
fn clone(&self) -> SupportedCompositeAlpha
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 SupportedCompositeAlpha
impl Debug for SupportedCompositeAlpha
sourceimpl Default for SupportedCompositeAlpha
impl Default for SupportedCompositeAlpha
sourceimpl From<CompositeAlphaFlagsKHR> for SupportedCompositeAlpha
impl From<CompositeAlphaFlagsKHR> for SupportedCompositeAlpha
sourcefn from(val: CompositeAlphaFlagsKHR) -> Self
fn from(val: CompositeAlphaFlagsKHR) -> Self
Converts to this type from the input type.
sourceimpl From<SupportedCompositeAlpha> for CompositeAlphaFlagsKHR
impl From<SupportedCompositeAlpha> for CompositeAlphaFlagsKHR
sourcefn from(val: SupportedCompositeAlpha) -> Self
fn from(val: SupportedCompositeAlpha) -> Self
Converts to this type from the input type.
sourceimpl Hash for SupportedCompositeAlpha
impl Hash for SupportedCompositeAlpha
sourceimpl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl PartialEq<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn eq(&self, other: &SupportedCompositeAlpha) -> bool
fn eq(&self, other: &SupportedCompositeAlpha) -> bool
sourceimpl Sub<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl Sub<SupportedCompositeAlpha> for SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
type Output = SupportedCompositeAlpha
The resulting type after applying the
-
operator.sourceimpl SubAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
impl SubAssign<SupportedCompositeAlpha> for SupportedCompositeAlpha
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SupportedCompositeAlpha
impl Eq for SupportedCompositeAlpha
impl StructuralEq for SupportedCompositeAlpha
impl StructuralPartialEq for SupportedCompositeAlpha
Auto Trait Implementations
impl RefUnwindSafe for SupportedCompositeAlpha
impl Send for SupportedCompositeAlpha
impl Sync for SupportedCompositeAlpha
impl Unpin for SupportedCompositeAlpha
impl UnwindSafe for SupportedCompositeAlpha
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