Trait rgb::ComponentBytes [] [src]

pub trait ComponentBytes<T: Copy + Send + Sync + 'static> where
    Self: ComponentSlice<T>, 
{ fn as_bytes(&self) -> &[u8] { ... }
fn as_bytes_mut(&mut self) -> &mut [u8] { ... } }

Casting a slice of RGB/A values to a slice of u8

Provided Methods

The components interpreted as raw bytes, in machine's native endian. In RGB bytes of the red component are first.

The components interpreted as raw bytes, in machine's native endian. In RGB bytes of the red component are first.

Implementors