[][src]Struct rgb::alt::Gray

#[repr(C)]pub struct Gray<ComponentType>(pub ComponentType);

Grayscale. Use .0 or * (deref) to access the value.

Trait Implementations

impl<T> AsMut<T> for Gray<T>[src]

impl<T> AsPixels<Gray<T>> for [T][src]

impl<T> AsRef<T> for Gray<T>[src]

impl<ComponentType: Clone> Clone for Gray<ComponentType>[src]

impl<T> ComponentSlice<T> for Gray<T>[src]

impl<ComponentType: Copy> Copy for Gray<ComponentType>[src]

impl<ComponentType: Debug> Debug for Gray<ComponentType>[src]

impl<ComponentType: Default> Default for Gray<ComponentType>[src]

impl<T> Deref for Gray<T>[src]

type Target = T

The resulting type after dereferencing.

impl<'de, ComponentType> Deserialize<'de> for Gray<ComponentType> where
    ComponentType: Deserialize<'de>, 
[src]

impl<ComponentType: Eq> Eq for Gray<ComponentType>[src]

impl<T: Clone> From<Gray<T>> for RGB<T>[src]

impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u8>[src]

Assumes 255 is opaque

impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u16>[src]

Assumes 65535 is opaque

impl<T: Copy> From<T> for Gray<T>[src]

impl<ComponentType: Hash> Hash for Gray<ComponentType>[src]

impl<ComponentType: Ord> Ord for Gray<ComponentType>[src]

impl<ComponentType: PartialEq> PartialEq<Gray<ComponentType>> for Gray<ComponentType>[src]

impl<ComponentType: PartialOrd> PartialOrd<Gray<ComponentType>> for Gray<ComponentType>[src]

impl<T> Pod for Gray<T> where
    T: Pod
[src]

impl<ComponentType> Serialize for Gray<ComponentType> where
    ComponentType: Serialize
[src]

impl<ComponentType> StructuralEq for Gray<ComponentType>[src]

impl<ComponentType> StructuralPartialEq for Gray<ComponentType>[src]

impl<T> Zeroable for Gray<T> where
    T: Zeroable
[src]

Auto Trait Implementations

impl<ComponentType> RefUnwindSafe for Gray<ComponentType> where
    ComponentType: RefUnwindSafe

impl<ComponentType> Send for Gray<ComponentType> where
    ComponentType: Send

impl<ComponentType> Sync for Gray<ComponentType> where
    ComponentType: Sync

impl<ComponentType> Unpin for Gray<ComponentType> where
    ComponentType: Unpin

impl<ComponentType> UnwindSafe for Gray<ComponentType> where
    ComponentType: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.