Enum BlendOp

#[repr(u8)]
pub enum BlendOp

How pixels are written into the buffer.

Variants

Source = 0

Pixels overwrite the value at their position.

Over = 1

The new pixels are blended into the current state based on alpha.

Implementations

impl BlendOp

fn from_u8(n: u8) -> Option<BlendOp>

u8 -> Self. Using enum_primitive or transmute is probably the right thing but this will do for now.

Trait Implementations

impl Clone for BlendOp

fn clone(&self) -> Self

impl Copy for BlendOp

impl Debug for BlendOp

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for BlendOp

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for BlendOp

impl PartialEq for BlendOp

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for BlendOp

Auto Trait Implementations

impl Freeze for BlendOp

impl RefUnwindSafe for BlendOp

impl Send for BlendOp

impl Sync for BlendOp

impl Unpin for BlendOp

impl UnsafeUnpin for BlendOp

impl UnwindSafe for BlendOp

Blanket Implementations

impl<T> Any for BlendOp where T: 'static + ?Sized,

impl<T> Borrow<T> for BlendOp where T: ?Sized,

impl<T> BorrowMut<T> for BlendOp where T: ?Sized,

impl<T> CloneToUninit for BlendOp where T: Clone,

impl<T> From<T> for BlendOp

impl<T> ToOwned for BlendOp where T: Clone,

impl<T> ToString for BlendOp where T: Display + ?Sized,

impl<T, U> Into<U> for BlendOp where U: From<T>,

impl<T, U> TryFrom<U> for BlendOp where U: Into<T>,

impl<T, U> TryInto<U> for BlendOp where U: TryFrom<T>,