Struct vulkano::pipeline::graphics::color_blend::ColorComponents
source · pub struct ColorComponents(/* private fields */);
Expand description
A mask specifying color components that can be written to a framebuffer attachment.
Implementations§
source§impl ColorComponents
impl ColorComponents
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ColorComponents
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 const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the flags not in self
.
Trait Implementations§
source§impl BitAnd for ColorComponents
impl BitAnd for ColorComponents
source§impl BitAndAssign for ColorComponents
impl BitAndAssign for ColorComponents
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for ColorComponents
impl BitOr for ColorComponents
source§impl BitOrAssign for ColorComponents
impl BitOrAssign for ColorComponents
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for ColorComponents
impl BitXor for ColorComponents
source§impl BitXorAssign for ColorComponents
impl BitXorAssign for ColorComponents
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for ColorComponents
impl Clone for ColorComponents
source§fn clone(&self) -> ColorComponents
fn clone(&self) -> ColorComponents
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 ColorComponents
impl Debug for ColorComponents
source§impl Default for ColorComponents
impl Default for ColorComponents
source§impl From<ColorComponentFlags> for ColorComponents
impl From<ColorComponentFlags> for ColorComponents
source§fn from(val: ColorComponentFlags) -> Self
fn from(val: ColorComponentFlags) -> Self
Converts to this type from the input type.
source§impl From<ColorComponents> for ColorComponentFlags
impl From<ColorComponents> for ColorComponentFlags
source§fn from(val: ColorComponents) -> Self
fn from(val: ColorComponents) -> Self
Converts to this type from the input type.
source§impl Hash for ColorComponents
impl Hash for ColorComponents
source§impl Not for ColorComponents
impl Not for ColorComponents
source§impl PartialEq for ColorComponents
impl PartialEq for ColorComponents
source§fn eq(&self, other: &ColorComponents) -> bool
fn eq(&self, other: &ColorComponents) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ColorComponents
impl Sub for ColorComponents
source§impl SubAssign for ColorComponents
impl SubAssign for ColorComponents
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ColorComponents
impl Eq for ColorComponents
impl StructuralEq for ColorComponents
impl StructuralPartialEq for ColorComponents
Auto Trait Implementations§
impl RefUnwindSafe for ColorComponents
impl Send for ColorComponents
impl Sync for ColorComponents
impl Unpin for ColorComponents
impl UnwindSafe for ColorComponents
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