Trait rgb::FromSlice [] [src]

pub trait FromSlice<T: Copy> {
    fn as_rgb(&self) -> &[RGB<T>];
fn as_rgba(&self) -> &[RGBA<T>];
fn as_rgb_mut(&mut self) -> &mut [RGB<T>];
fn as_rgba_mut(&mut self) -> &mut [RGBA<T>]; }

Cast a slice of component values (bytes) as a slice of RGB/RGBA pixels

If there's any incomplete pixel at the end of the slice it is ignored.

Required Methods

Implementors