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) -> DisposalMethod

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: &DisposalMethod) -> 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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for DisposalMethod

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for DisposalMethod 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 DisposalMethod where U: Into<T>,

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

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

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