[][src]Struct ascii_art::Rgb

#[repr(C)]pub struct Rgb<T>(pub [T; 3])
where
    T: Primitive
;

RGB colors

Trait Implementations

impl<T> Clone for Rgb<T> where
    T: Primitive + Clone
[src]

impl<T> Copy for Rgb<T> where
    T: Primitive + Copy
[src]

impl<T> Debug for Rgb<T> where
    T: Primitive + Debug
[src]

impl<T> Eq for Rgb<T> where
    T: Primitive + Eq
[src]

impl<T> From<[T; 3]> for Rgb<T> where
    T: 'static + Primitive
[src]

impl<T> Hash for Rgb<T> where
    T: Primitive + Hash
[src]

impl<T> Index<usize> for Rgb<T> where
    T: Primitive
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for Rgb<T> where
    T: Primitive
[src]

impl<T> PartialEq<Rgb<T>> for Rgb<T> where
    T: Primitive + PartialEq<T>, 
[src]

impl<T> Pixel for Rgb<T> where
    T: 'static + Primitive
[src]

type Subpixel = T

The underlying subpixel type.

impl<T> StructuralEq for Rgb<T> where
    T: Primitive
[src]

impl<T> StructuralPartialEq for Rgb<T> where
    T: Primitive
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Rgb<T> where
    T: RefUnwindSafe

impl<T> Send for Rgb<T> where
    T: Send

impl<T> Sync for Rgb<T> where
    T: Sync

impl<T> Unpin for Rgb<T> where
    T: Unpin

impl<T> UnwindSafe for Rgb<T> where
    T: 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> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.