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

Return type of methods in this trait.

Required methods

Converts a color into a byte array with big endian byte order.

Converts a color into a byte array with little endian byte order.

Converts a color into a byte array with native byte order.

Implementations on Foreign Types

Implementors