Trait rgb::ComponentBytes [] [src]

pub trait ComponentBytes<T: Copy> 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. Bytes of the red component are first.

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

Implementations on Foreign Types

impl<T: Copy> ComponentBytes<T> for [RGB<T>]
[src]

[src]

[src]

impl<T: Copy> ComponentBytes<T> for [RGBA<T>]
[src]

[src]

[src]

Implementors