Enum gif::DisposalMethod [−][src]
#[repr(u8)]pub enum DisposalMethod { Any, Keep, Background, Previous, }
Disposal method
Variants
AnyStreamingDecoder is not required to take any action.
KeepDo not dispose.
BackgroundRestore to background color.
PreviousRestore to previous.
Methods
impl DisposalMethod[src]
impl DisposalMethodpub fn from_u8(n: u8) -> Option<DisposalMethod>[src]
pub fn from_u8(n: u8) -> Option<DisposalMethod>Converts u8 to Option<Self>
Trait Implementations
impl Debug for DisposalMethod[src]
impl Debug for DisposalMethodfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for DisposalMethod[src]
impl Copy for DisposalMethodimpl Clone for DisposalMethod[src]
impl Clone for DisposalMethodfn clone(&self) -> DisposalMethod[src]
fn clone(&self) -> DisposalMethodReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for DisposalMethod[src]
impl PartialEq for DisposalMethodfn eq(&self, other: &DisposalMethod) -> bool[src]
fn eq(&self, other: &DisposalMethod) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for DisposalMethod[src]
impl Eq for DisposalMethodAuto Trait Implementations
impl Send for DisposalMethod
impl Send for DisposalMethodimpl Sync for DisposalMethod
impl Sync for DisposalMethod