[][src]Struct embedded_graphics::pixelcolor::raw::RawU2

pub struct RawU2(_);

2 bits per pixel raw data.

RawU2 is internally stored in an u8. It can be constructed from an u8 by using the new method or by calling RawU2::from(u8_value). To convert a RawU2 back into a u8 the into_inner method can be used.

See the module-level documentation for more information.

Methods

impl RawU2[src]

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

Creates a new color from the least significant 2 bits of value.

Trait Implementations

impl Clone for RawU2[src]

impl Copy for RawU2[src]

impl Debug for RawU2[src]

impl Default for RawU2[src]

impl Eq for RawU2[src]

impl From<Gray2> for RawU2[src]

impl From<RawU2> for Gray2[src]

impl From<u8> for RawU2[src]

impl Hash for RawU2[src]

impl Ord for RawU2[src]

impl PartialEq<RawU2> for RawU2[src]

impl PartialOrd<RawU2> for RawU2[src]

impl RawData for RawU2[src]

type Storage = u8

Storage type. Read more

impl StructuralEq for RawU2[src]

impl StructuralPartialEq for RawU2[src]

Auto Trait Implementations

impl Send for RawU2

impl Sync for RawU2

impl Unpin for RawU2

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