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