Enum ArbitraryTuplType

pub enum ArbitraryTuplType

Standardized tuple type specifiers in the header of a pam.

Variants

BlackAndWhite

Pixels are either black (0) or white (1)

BlackAndWhiteAlpha

Pixels are either black (0) or white (1) and a second alpha channel

Grayscale

Pixels represent the amount of white

GrayscaleAlpha

Grayscale with an additional alpha channel

RGB

Three channels: Red, Green, Blue

RGBAlpha

Four channels: Red, Green, Blue, Alpha

Custom(String)

An image format which is not standardized

Trait Implementations

impl Clone for ArbitraryTuplType

fn clone(&self) -> ArbitraryTuplType

impl Debug for ArbitraryTuplType

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

Auto Trait Implementations

impl Freeze for ArbitraryTuplType

impl RefUnwindSafe for ArbitraryTuplType

impl Send for ArbitraryTuplType

impl Sync for ArbitraryTuplType

impl Unpin for ArbitraryTuplType

impl UnsafeUnpin for ArbitraryTuplType

impl UnwindSafe for ArbitraryTuplType

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ArbitraryTuplType where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ArbitraryTuplType where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ArbitraryTuplType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for ArbitraryTuplType

impl<T> Pointable for ArbitraryTuplType

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> Read<Exclusive, BecauseExclusive> for ArbitraryTuplType where T: ?Sized,

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

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

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

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

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

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