Enum DisposeOp

#[repr(u8)]
pub enum DisposeOp

How to reset buffer of an animated png (APNG) at the end of a frame.

Variants

None = 0

Leave the buffer unchanged.

Background = 1

Clear buffer with the background color.

Previous = 2

Reset the buffer to the state before the current frame.

Implementations

impl DisposeOp

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

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

Trait Implementations

impl Clone for DisposeOp

fn clone(&self) -> Self

impl Copy for DisposeOp

impl Debug for DisposeOp

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

impl Display for DisposeOp

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

impl Eq for DisposeOp

impl PartialEq for DisposeOp

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

impl StructuralPartialEq for DisposeOp

Auto Trait Implementations

impl Freeze for DisposeOp

impl RefUnwindSafe for DisposeOp

impl Send for DisposeOp

impl Sync for DisposeOp

impl Unpin for DisposeOp

impl UnsafeUnpin for DisposeOp

impl UnwindSafe for DisposeOp

Blanket Implementations

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

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

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

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

impl<T> From<T> for DisposeOp

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

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

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

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

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