Struct vulkano::display::DisplayPlaneAlphaFlags
source · pub struct DisplayPlaneAlphaFlags(/* private fields */);
Expand description
A set of DisplayPlaneAlpha
values.
Implementations§
source§impl DisplayPlaneAlphaFlags
impl DisplayPlaneAlphaFlags
sourcepub const GLOBAL: Self = _
pub const GLOBAL: Self = _
Use a single global alpha value that will be used for all pixels in the source image.
sourcepub const PER_PIXEL_PREMULTIPLIED: Self = _
pub const PER_PIXEL_PREMULTIPLIED: Self = _
Use the alpha component of each pixel in the source image, but treat the other components as having already been multiplied by the alpha component.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a DisplayPlaneAlphaFlags
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: DisplayPlaneAlpha) -> bool
pub fn contains_enum(self, val: DisplayPlaneAlpha) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for DisplayPlaneAlphaFlags
impl BitAnd for DisplayPlaneAlphaFlags
source§impl BitAndAssign for DisplayPlaneAlphaFlags
impl BitAndAssign for DisplayPlaneAlphaFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for DisplayPlaneAlphaFlags
impl BitOr for DisplayPlaneAlphaFlags
source§impl BitOrAssign for DisplayPlaneAlphaFlags
impl BitOrAssign for DisplayPlaneAlphaFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for DisplayPlaneAlphaFlags
impl BitXor for DisplayPlaneAlphaFlags
source§impl BitXorAssign for DisplayPlaneAlphaFlags
impl BitXorAssign for DisplayPlaneAlphaFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for DisplayPlaneAlphaFlags
impl Clone for DisplayPlaneAlphaFlags
source§fn clone(&self) -> DisplayPlaneAlphaFlags
fn clone(&self) -> DisplayPlaneAlphaFlags
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 DisplayPlaneAlphaFlags
impl Debug for DisplayPlaneAlphaFlags
source§impl Default for DisplayPlaneAlphaFlags
impl Default for DisplayPlaneAlphaFlags
source§impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
source§fn from(val: DisplayPlaneAlpha) -> Self
fn from(val: DisplayPlaneAlpha) -> Self
Converts to this type from the input type.
source§impl From<DisplayPlaneAlphaFlags> for DisplayPlaneAlphaFlagsKHR
impl From<DisplayPlaneAlphaFlags> for DisplayPlaneAlphaFlagsKHR
source§fn from(val: DisplayPlaneAlphaFlags) -> Self
fn from(val: DisplayPlaneAlphaFlags) -> Self
Converts to this type from the input type.
source§impl From<DisplayPlaneAlphaFlagsKHR> for DisplayPlaneAlphaFlags
impl From<DisplayPlaneAlphaFlagsKHR> for DisplayPlaneAlphaFlags
source§fn from(val: DisplayPlaneAlphaFlagsKHR) -> Self
fn from(val: DisplayPlaneAlphaFlagsKHR) -> Self
Converts to this type from the input type.
source§impl FromIterator<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
impl FromIterator<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = DisplayPlaneAlpha>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = DisplayPlaneAlpha>,
Creates a value from an iterator. Read more
source§impl Hash for DisplayPlaneAlphaFlags
impl Hash for DisplayPlaneAlphaFlags
source§impl IntoIterator for DisplayPlaneAlphaFlags
impl IntoIterator for DisplayPlaneAlphaFlags
§type Item = DisplayPlaneAlpha
type Item = DisplayPlaneAlpha
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<DisplayPlaneAlphaFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<DisplayPlaneAlphaFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq for DisplayPlaneAlphaFlags
impl PartialEq for DisplayPlaneAlphaFlags
source§fn eq(&self, other: &DisplayPlaneAlphaFlags) -> bool
fn eq(&self, other: &DisplayPlaneAlphaFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for DisplayPlaneAlphaFlags
impl Sub for DisplayPlaneAlphaFlags
source§impl SubAssign for DisplayPlaneAlphaFlags
impl SubAssign for DisplayPlaneAlphaFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for DisplayPlaneAlphaFlags
impl Eq for DisplayPlaneAlphaFlags
impl StructuralEq for DisplayPlaneAlphaFlags
impl StructuralPartialEq for DisplayPlaneAlphaFlags
Auto Trait Implementations§
impl RefUnwindSafe for DisplayPlaneAlphaFlags
impl Send for DisplayPlaneAlphaFlags
impl Sync for DisplayPlaneAlphaFlags
impl Unpin for DisplayPlaneAlphaFlags
impl UnwindSafe for DisplayPlaneAlphaFlags
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