[][src]Struct embedded_graphics::pixelcolor::Rgb888

pub struct Rgb888(_);

Rgb888 color.

Use the methods provided by the RgbColor trait to access individual color channels and predefined color constants.

See the module-level documentation for more information about conversion between this type and raw data.

Methods

impl Rgb888 where
    Self: RgbColor
[src]

pub const fn new(r: u8, g: u8, b: u8) -> Self[src]

Creates a new Rgb888 color.

Too large channel values will be limited by setting the unused most significant bits to zero.

Trait Implementations

impl Clone for Rgb888[src]

impl ColorMapping<Rgb888> for Rgb888[src]

impl Copy for Rgb888[src]

impl Debug for Rgb888[src]

impl Default for Rgb888[src]

impl Eq for Rgb888[src]

impl From<Bgr555> for Rgb888[src]

impl From<Bgr565> for Rgb888[src]

impl From<Bgr888> for Rgb888[src]

impl From<BinaryColor> for Rgb888[src]

impl From<Gray2> for Rgb888[src]

impl From<Gray4> for Rgb888[src]

impl From<Gray8> for Rgb888[src]

impl From<RawU24> for Rgb888[src]

impl From<Rgb555> for Rgb888[src]

impl From<Rgb565> for Rgb888[src]

impl From<Rgb888> for Rgb555[src]

impl From<Rgb888> for Bgr555[src]

impl From<Rgb888> for Rgb565[src]

impl From<Rgb888> for Bgr565[src]

impl From<Rgb888> for Bgr888[src]

impl From<Rgb888> for RawU24[src]

impl Hash for Rgb888[src]

impl Ord for Rgb888[src]

impl PartialEq<Rgb888> for Rgb888[src]

impl PartialOrd<Rgb888> for Rgb888[src]

impl PixelColor for Rgb888[src]

type Raw = RawU24

Raw data type. Read more

impl RgbColor for Rgb888[src]

impl StructuralEq for Rgb888[src]

impl StructuralPartialEq for Rgb888[src]

Auto Trait Implementations

impl Send for Rgb888

impl Sync for Rgb888

impl Unpin for Rgb888

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<C> IntoStorage for C where
    C: PixelColor,
    <C as PixelColor>::Raw: From<C>, 
[src]

type Storage = <<C as PixelColor>::Raw as RawData>::Storage

The underlying storage type for the pixel color

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,