Trait rgb::ComponentSlice [] [src]

pub trait ComponentSlice<T> {
    fn as_slice(&self) -> &[T];
fn as_mut_slice(&mut self) -> &mut [T]; }

Casting the struct to slices of its components

Required Methods

The components interpreted as an array, e.g. one RGB expands to 3 elements.

It's implemented for individual pixels as well as slices of pixels.

Implementations on Foreign Types

impl<T> ComponentSlice<T> for [RGB<T>]
[src]

[src]

[src]

impl<T> ComponentSlice<T> for [BGR<T>]
[src]

[src]

[src]

impl<T> ComponentSlice<T> for [RGBA<T>]
[src]

[src]

[src]

impl<T> ComponentSlice<T> for [BGRA<T>]
[src]

[src]

[src]

Implementors