Enum PixelType

enum PixelType

Types that can be used as pixel types.

Variants

U8

8 bits per pixel, stored in a u8.

U16

10 or 12 bits per pixel, stored in a u16.

Implementations

impl Eq for PixelType

impl Freeze for PixelType

impl PartialEq for PixelType

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

impl RefUnwindSafe for PixelType

impl Send for PixelType

impl StructuralPartialEq for PixelType

impl Sync for PixelType

impl Unpin for PixelType

impl UnsafeUnpin for PixelType

impl UnwindSafe for PixelType

impl<T> Any for PixelType

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PixelType

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

impl<T> BorrowMut for PixelType

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

impl<T> From for PixelType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for PixelType

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 PixelType

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

impl<T, U> TryInto for PixelType

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