[−][src]Trait embedded_layout::prelude::RawData
Trait implemented by all RawUx
types.
Associated Types
type Storage
Storage type.
A primitive unsigned integer storage type that contains at least BITS_PER_PIXEL
bits.
Associated Constants
const BITS_PER_PIXEL: usize
Bits per pixel.
Required methods
fn into_inner(self) -> Self::Storage
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
.
fn from_u32(value: u32) -> Self
Converts a u32
into a RawData
type.
This method can be used to generically construct all RawData
types from
the same integer type. If the width of the RawData
type is less than
32 bits only the least significant bits are used.
Implementations on Foreign Types
impl RawData for RawU8
[src]
type Storage = u8
const BITS_PER_PIXEL: usize
[src]
fn into_inner(self) -> <RawU8 as RawData>::Storage
[src]
fn from_u32(value: u32) -> RawU8
[src]
impl RawData for RawU32
[src]
type Storage = u32
const BITS_PER_PIXEL: usize
[src]
fn into_inner(self) -> <RawU32 as RawData>::Storage
[src]
fn from_u32(value: u32) -> RawU32
[src]
impl RawData for RawU16
[src]
type Storage = u16
const BITS_PER_PIXEL: usize
[src]
fn into_inner(self) -> <RawU16 as RawData>::Storage
[src]
fn from_u32(value: u32) -> RawU16
[src]
impl RawData for ()
[src]
Dummy implementation for ()
.
()
can be used as PixelColor::Raw
if raw data conversion isn't required.