Enum DisposalMethod

#[repr(u8)]
pub enum DisposalMethod

Disposal method

Variants

Any = 0

StreamingDecoder is not required to take any action.

Keep = 1

Do not dispose.

Background = 2

Restore to background color.

Previous = 3

Restore to previous.

Implementations

impl DisposalMethod

const fn from_u8(n: u8) -> Option<Self>

Converts u8 to Option<Self>

Trait Implementations

impl Clone for DisposalMethod

fn clone(&self) -> Self

impl Copy for DisposalMethod

impl Debug for DisposalMethod

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

impl Eq for DisposalMethod

impl PartialEq for DisposalMethod

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

impl StructuralPartialEq for DisposalMethod

Auto Trait Implementations

impl Freeze for DisposalMethod

impl RefUnwindSafe for DisposalMethod

impl Send for DisposalMethod

impl Sync for DisposalMethod

impl Unpin for DisposalMethod

impl UnsafeUnpin for DisposalMethod

impl UnwindSafe for DisposalMethod

Blanket Implementations

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

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

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

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

impl<T> From<T> for DisposalMethod

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

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

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

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