Enum Extension

#[repr(u8)]
pub enum Extension

Known GIF extension labels.

These are extensions which may be interpreted by the library and to which a specification with the internal data layout is known.

Variants

Text = 0x01

Plain Text extension.

This instructs the decoder to render a text as characters in a grid of cells, in a mono-spaced font of its choosing. This is seldom actually implemented and ignored by ImageMagick. The color is always taken from the global table which further complicates any use. No real information on the frame sequencing of this block is available in the standard.

Control = 0xF9

Control extension.

Comment = 0xFE

Comment extension.

Application = 0xFF

Application extension.

See ImageMagick for an idea of commonly recognized extensions.

Implementations

impl Extension

const fn from_u8(n: u8) -> Option<Self>

Converts u8 to a Extension if it is known.

Trait Implementations

impl Clone for Extension

fn clone(&self) -> Extension

impl Copy for Extension

impl Debug for Extension

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Extension

impl PartialEq for Extension

fn eq(&self, other: &Extension) -> bool

impl StructuralPartialEq for Extension

Auto Trait Implementations

impl Freeze for Extension

impl RefUnwindSafe for Extension

impl Send for Extension

impl Sync for Extension

impl Unpin for Extension

impl UnsafeUnpin for Extension

impl UnwindSafe for Extension

Blanket Implementations

impl<T> Any for Extension where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Extension where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Extension where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Extension where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Extension

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Extension where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Extension where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Extension where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Extension where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>