Trait embedded_graphics::pixelcolor::raw::ToBytes [−][src]
pub trait ToBytes { type Bytes; fn to_be_bytes(self) -> Self::Bytes; fn to_le_bytes(self) -> Self::Bytes; fn to_ne_bytes(self) -> Self::Bytes; }
Expand description
Trait to convert colors into a byte array.
See the module-level documentation for an example.
Associated Types
Required methods
fn to_be_bytes(self) -> Self::Bytes
[src]
fn to_be_bytes(self) -> Self::Bytes
[src]Converts a color into a byte array with big endian byte order.
fn to_le_bytes(self) -> Self::Bytes
[src]
fn to_le_bytes(self) -> Self::Bytes
[src]Converts a color into a byte array with little endian byte order.
fn to_ne_bytes(self) -> Self::Bytes
[src]
fn to_ne_bytes(self) -> Self::Bytes
[src]Converts a color into a byte array with native byte order.