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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DisposeOp
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DisposeOp
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DisposeOp
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DisposeOp
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DisposeOp
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for DisposeOp
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DisposeOp
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DisposeOp
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DisposeOp
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>