Enum gif::DisposalMethod
source · [−]#[repr(u8)]
pub enum DisposalMethod {
Any,
Keep,
Background,
Previous,
}
Expand description
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
sourceimpl DisposalMethod
impl DisposalMethod
sourcepub fn from_u8(n: u8) -> Option<DisposalMethod>
pub fn from_u8(n: u8) -> Option<DisposalMethod>
Converts u8
to Option<Self>
Trait Implementations
sourceimpl Clone for DisposalMethod
impl Clone for DisposalMethod
sourcefn clone(&self) -> DisposalMethod
fn clone(&self) -> DisposalMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DisposalMethod
impl Debug for DisposalMethod
sourceimpl PartialEq<DisposalMethod> for DisposalMethod
impl PartialEq<DisposalMethod> for DisposalMethod
impl Copy for DisposalMethod
impl Eq for DisposalMethod
impl StructuralEq for DisposalMethod
impl StructuralPartialEq for DisposalMethod
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more