Enum gif::DisposalMethod[][src]

#[repr(u8)]
pub enum DisposalMethod {
    Any,
    Keep,
    Background,
    Previous,
}

Disposal method

Variants

Any

StreamingDecoder is not required to take any action.

Keep

Do not dispose.

Background

Restore to background color.

Previous

Restore to previous.

Implementations

impl DisposalMethod[src]

pub fn from_u8(n: u8) -> Option<DisposalMethod>[src]

Converts u8 to Option<Self>

Trait Implementations

impl Clone for DisposalMethod[src]

impl Copy for DisposalMethod[src]

impl Debug for DisposalMethod[src]

impl Eq for DisposalMethod[src]

impl PartialEq<DisposalMethod> for DisposalMethod[src]

impl StructuralEq for DisposalMethod[src]

impl StructuralPartialEq for DisposalMethod[src]

Auto Trait Implementations

impl RefUnwindSafe for DisposalMethod

impl Send for DisposalMethod

impl Sync for DisposalMethod

impl Unpin for DisposalMethod

impl UnwindSafe for DisposalMethod

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.