Enum ArbitraryTuplType

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

Implementations

impl Clone for ArbitraryTuplType

fn clone(self: &Self) -> ArbitraryTuplType

impl Debug for ArbitraryTuplType

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

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

impl<T> Any for ArbitraryTuplType

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ArbitraryTuplType

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ArbitraryTuplType

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

impl<T> CloneToUninit for ArbitraryTuplType

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

impl<T> From for ArbitraryTuplType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for ArbitraryTuplType

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> ToOwned for ArbitraryTuplType

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for ArbitraryTuplType

fn into(self: 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 for ArbitraryTuplType

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ArbitraryTuplType

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