[][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> ComponentSlice<T> for Gray<T>
[src]

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

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

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

type Target = T

The resulting type after dereferencing.

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

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

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

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

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

impl<T: Copy> From<T> for Gray<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<ComponentType: Clone> Clone for Gray<ComponentType>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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