Enum gif::DisposalMethod
source · #[repr(u8)]pub enum DisposalMethod {
Any = 0,
Keep = 1,
Background = 2,
Previous = 3,
}
Expand description
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§
source§impl 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§
source§impl Clone for DisposalMethod
impl Clone for DisposalMethod
source§fn clone(&self) -> DisposalMethod
fn clone(&self) -> DisposalMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisposalMethod
impl Debug for DisposalMethod
source§impl PartialEq for DisposalMethod
impl PartialEq for DisposalMethod
impl Copy for DisposalMethod
impl Eq for DisposalMethod
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 UnwindSafe for DisposalMethod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)