Enum ColorOutput

#[repr(u8)]
pub enum ColorOutput

Output mode for the image data

Variants

RGBA = 0

The decoder expands the image data to 32bit RGBA. This affects:

  • The buffer buffer of the Frame returned by Decoder::read_next_frame.
  • Decoder::fill_buffer, Decoder::buffer_size and Decoder::line_length.
Indexed = 1

The decoder returns the raw indexed data.

Trait Implementations

impl Clone for ColorOutput

fn clone(&self) -> ColorOutput

impl Copy for ColorOutput

impl Debug for ColorOutput

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

impl PartialEq for ColorOutput

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

impl StructuralPartialEq for ColorOutput

Auto Trait Implementations

impl Freeze for ColorOutput

impl RefUnwindSafe for ColorOutput

impl Send for ColorOutput

impl Sync for ColorOutput

impl Unpin for ColorOutput

impl UnsafeUnpin for ColorOutput

impl UnwindSafe for ColorOutput

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ColorOutput

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for ColorOutput 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 ColorOutput where U: Into<T>,

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

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

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