[][src]Struct embedded_graphics::pixelcolor::Bgr565

pub struct Bgr565(_);

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

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

Creates a new Bgr565 color.

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

Trait Implementations

impl Clone for Bgr565[src]

impl Copy for Bgr565[src]

impl Debug for Bgr565[src]

impl Default for Bgr565[src]

impl Eq for Bgr565[src]

impl From<Bgr555> for Bgr565[src]

impl From<Bgr565> for Rgb555[src]

impl From<Bgr565> for Bgr555[src]

impl From<Bgr565> for Rgb565[src]

impl From<Bgr565> for Rgb888[src]

impl From<Bgr565> for Bgr888[src]

impl From<Bgr565> for RawU16[src]

impl From<Bgr888> for Bgr565[src]

impl From<BinaryColor> for Bgr565[src]

impl From<Gray2> for Bgr565[src]

impl From<Gray4> for Bgr565[src]

impl From<Gray8> for Bgr565[src]

impl From<RawU16> for Bgr565[src]

impl From<Rgb555> for Bgr565[src]

impl From<Rgb565> for Bgr565[src]

impl From<Rgb888> for Bgr565[src]

impl Hash for Bgr565[src]

impl Ord for Bgr565[src]

impl PartialEq<Bgr565> for Bgr565[src]

impl PartialOrd<Bgr565> for Bgr565[src]

impl PixelColor for Bgr565[src]

type Raw = RawU16

Raw data type. Read more

impl RgbColor for Bgr565[src]

impl StructuralEq for Bgr565[src]

impl StructuralPartialEq for Bgr565[src]

Auto Trait Implementations

impl Send for Bgr565

impl Sync for Bgr565

impl Unpin for Bgr565

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