[][src]Struct embedded_graphics::pixelcolor::Gray8

pub struct Gray8(_);

8 bit grayscale color.

Methods

impl Gray8[src]

pub const fn new(luma: u8) -> Self[src]

Creates a new grayscale color.

Too large luma values are masked to the valid range by setting the upper bits to 0.

Trait Implementations

impl Clone for Gray8[src]

impl ColorMapping<Gray8> for Gray8[src]

impl Copy for Gray8[src]

impl Debug for Gray8[src]

impl Default for Gray8[src]

impl Eq for Gray8[src]

impl From<BinaryColor> for Gray8[src]

impl From<Gray8> for Rgb555[src]

impl From<Gray8> for Bgr555[src]

impl From<Gray8> for Rgb565[src]

impl From<Gray8> for Bgr565[src]

impl From<Gray8> for Rgb888[src]

impl From<Gray8> for Bgr888[src]

impl From<Gray8> for RawU8[src]

impl From<RawU8> for Gray8[src]

impl GrayColor for Gray8[src]

const BLACK: Self[src]

Black color (0% luma)

const WHITE: Self[src]

White color (100% luma)

impl Hash for Gray8[src]

impl Ord for Gray8[src]

impl PartialEq<Gray8> for Gray8[src]

impl PartialOrd<Gray8> for Gray8[src]

impl PixelColor for Gray8[src]

type Raw = RawU8

Raw data type. Read more

impl StructuralEq for Gray8[src]

impl StructuralPartialEq for Gray8[src]

Auto Trait Implementations

impl Send for Gray8

impl Sync for Gray8

impl Unpin for Gray8

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