[][src]Enum rin::graphics::image::ColorType

pub enum ColorType {
    Gray(u8),
    RGB(u8),
    Palette(u8),
    GrayA(u8),
    RGBA(u8),
    BGR(u8),
    BGRA(u8),
}

An enumeration over supported color types and their bit depths

Variants

Pixel is grayscale

Pixel contains R, G and B channels

Pixel is an index into a color palette

Pixel is grayscale with an alpha channel

Pixel is RGB with an alpha channel

Pixel contains B, G and R channels

Pixel is BGR with an alpha channel

Trait Implementations

impl From<PixelFormat> for ColorType
[src]

impl From<(ColorType, BitDepth)> for ColorType
[src]

impl From<ColorType> for ColorType
[src]

impl PartialEq<ColorType> for ColorType
[src]

impl Clone for ColorType
[src]

Performs copy-assignment from source. Read more

impl Hash for ColorType
[src]

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

impl Debug for ColorType
[src]

impl Eq for ColorType
[src]

impl Copy for ColorType
[src]

Auto Trait Implementations

impl Send for ColorType

impl Sync for ColorType

Blanket Implementations

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

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

impl<T> From for T
[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<V> IntoPnt for V
[src]

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

Tests if Self the same as the type T Read more

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self