Enum PixelType
pub 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.
Trait Implementations
impl Eq for PixelType
impl PartialEq for PixelType
fn eq(&self, other: &PixelType) -> bool
impl StructuralPartialEq for PixelType
Auto Trait Implementations
impl Freeze for PixelType
impl RefUnwindSafe for PixelType
impl Send for PixelType
impl Sync for PixelType
impl Unpin for PixelType
impl UnsafeUnpin for PixelType
impl UnwindSafe for PixelType
Blanket Implementations
impl<T> Any for PixelType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PixelType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PixelType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PixelType
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for PixelType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PixelType
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for PixelType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>