pub enum GifDisposalMethod {
Unspecified,
Keep,
RestoreToBackground,
RestoreToPrevious,
}Expand description
GIF89a Graphic Control Extension disposal method applied after a frame finishes displaying.
Variants§
Unspecified
Disposal method 0: no disposal specified (leave canvas intact).
Keep
Disposal method 1: do not dispose (preserve drawn pixels for subsequent frames).
RestoreToBackground
Disposal method 2: restore the frame’s sub-rectangle to transparent background [0, 0, 0, 0].
RestoreToPrevious
Disposal method 3: restore the canvas to its state immediately before this frame was composited.
Implementations§
Source§impl GifDisposalMethod
Conversion helpers for GifDisposalMethod.
impl GifDisposalMethod
Conversion helpers for GifDisposalMethod.
Sourcepub const fn from_gce_bits(bits: u8) -> Self
pub const fn from_gce_bits(bits: u8) -> Self
Sourcepub const fn to_gce_bits(self) -> u8
pub const fn to_gce_bits(self) -> u8
Trait Implementations§
Source§impl Clone for GifDisposalMethod
impl Clone for GifDisposalMethod
impl Copy for GifDisposalMethod
Source§impl Debug for GifDisposalMethod
impl Debug for GifDisposalMethod
Source§impl Default for GifDisposalMethod
impl Default for GifDisposalMethod
impl Eq for GifDisposalMethod
Source§impl Hash for GifDisposalMethod
impl Hash for GifDisposalMethod
Source§impl PartialEq for GifDisposalMethod
impl PartialEq for GifDisposalMethod
impl StructuralPartialEq for GifDisposalMethod
Auto Trait Implementations§
impl Forget for GifDisposalMethod
impl Freeze for GifDisposalMethod
impl Move for GifDisposalMethod
impl RefUnwindSafe for GifDisposalMethod
impl Send for GifDisposalMethod
impl Sync for GifDisposalMethod
impl Unpin for GifDisposalMethod
impl UnsafeUnpin for GifDisposalMethod
impl UnwindSafe for GifDisposalMethod
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