[][src]Struct embedded_graphics::pixelcolor::Rgb565

pub struct Rgb565(_);

Rgb565 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 Rgb565 where
    Self: RgbColor
[src]

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

Creates a new Rgb565 color.

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

Trait Implementations

impl RgbColor for Rgb565[src]

impl PixelColor for Rgb565[src]

type Raw = RawU16

Raw data type. Read more

impl PartialEq<Rgb565> for Rgb565[src]

impl Eq for Rgb565[src]

impl Debug for Rgb565[src]

impl Copy for Rgb565[src]

impl From<Rgb565> for Rgb555[src]

impl From<Rgb565> for Bgr555[src]

impl From<Rgb555> for Rgb565[src]

impl From<Bgr555> for Rgb565[src]

impl From<Bgr565> for Rgb565[src]

impl From<Rgb888> for Rgb565[src]

impl From<Bgr888> for Rgb565[src]

impl From<Rgb565> for Bgr565[src]

impl From<Rgb565> for Rgb888[src]

impl From<Rgb565> for Bgr888[src]

impl From<Gray2> for Rgb565[src]

impl From<Gray4> for Rgb565[src]

impl From<Gray8> for Rgb565[src]

impl From<BinaryColor> for Rgb565[src]

impl From<RawU16> for Rgb565[src]

impl From<Rgb565> for RawU16[src]

impl Clone for Rgb565[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for Rgb565

impl Send for Rgb565

impl Sync for Rgb565

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

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