pub enum BlendMode {
None,
Alpha,
PremultipliedAlpha,
PremultipliedDestOut,
SubpixelDualSource,
Advanced(MixBlendMode),
MultiplyDualSource,
Screen,
Exclusion,
PlusLighter,
}
Variants§
None
Alpha
PremultipliedAlpha
PremultipliedDestOut
SubpixelDualSource
Advanced(MixBlendMode)
MultiplyDualSource
Screen
Exclusion
PlusLighter
Implementations§
source§impl BlendMode
impl BlendMode
sourcepub fn from_mix_blend_mode(
mode: MixBlendMode,
advanced_blend: bool,
coherent: bool,
dual_source: bool,
) -> Option<BlendMode>
pub fn from_mix_blend_mode( mode: MixBlendMode, advanced_blend: bool, coherent: bool, dual_source: bool, ) -> Option<BlendMode>
Decides when a given mix-blend-mode can be implemented in terms of simple blending, dual-source blending, advanced blending, or not at all based on available capabilities.
Trait Implementations§
source§impl PartialEq for BlendMode
impl PartialEq for BlendMode
impl Copy for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more