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
fn as_slice(&self) -> &[T]
The components interpreted as an array, e.g. RGB gives 3-element slice. The red component is first.