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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for BlendOp

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>