Trait embedded_graphics::pixelcolor::raw::RawData [−][src]
pub trait RawData: Sealed + From<Self::Storage> + ToBytes { type Storage; const BITS_PER_PIXEL: usize; fn into_inner(self) -> Self::Storage; fn from_u32(value: u32) -> Self; }
Expand description
Trait implemented by all RawUx
types.
Associated Types
Associated Constants
const BITS_PER_PIXEL: usize
[src]
const BITS_PER_PIXEL: usize
[src]Bits per pixel.
Required methods
fn into_inner(self) -> Self::Storage
[src]
fn into_inner(self) -> Self::Storage
[src]Converts this raw data into the storage type.
If the primitive integer types used as the storage type contains more bits
than used by this type the unused most significant bits are set to 0
.
Implementations on Foreign Types
Dummy implementation for ()
.
()
can be used as PixelColor::Raw
if raw data conversion isn’t required.