Enum gfx_hal::format::Component[][src]

#[repr(u8)]pub enum Component {
    Zero,
    One,
    R,
    G,
    B,
    A,
}

Source channel in a swizzle configuration. Some may redirect onto different physical channels, some may be hardcoded to 0 or 1.

Variants

Zero

Hardcoded zero

One

Hardcoded one

R

Red channel

G

Green channel

B

Blue channel

A

Alpha channel.

Trait Implementations

impl Clone for Component[src]

impl Copy for Component[src]

impl Debug for Component[src]

impl Eq for Component[src]

impl Hash for Component[src]

impl Ord for Component[src]

impl PartialEq<Component> for Component[src]

impl PartialOrd<Component> for Component[src]

impl StructuralEq for Component[src]

impl StructuralPartialEq for Component[src]

Auto Trait Implementations

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> 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.