[−][src]Trait rgb::ComponentSlice
Casting the struct to slices of its components
Required methods
fn as_slice(&self) -> &[T]
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.
fn as_mut_slice(&mut self) -> &mut [T]
Implementors
impl<T> ComponentSlice<T> for BGR<T>
[src]
impl<T> ComponentSlice<T> for BGR<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for BGRA<T>
[src]
impl<T> ComponentSlice<T> for BGRA<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for Gray<T>
[src]
impl<T> ComponentSlice<T> for Gray<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for GrayAlpha<T>
[src]
impl<T> ComponentSlice<T> for GrayAlpha<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for RGB<T>
[src]
impl<T> ComponentSlice<T> for RGB<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for RGBA<T>
[src]
impl<T> ComponentSlice<T> for RGBA<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [BGR<T>]
[src]
impl<T> ComponentSlice<T> for [BGR<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [BGRA<T>]
[src]
impl<T> ComponentSlice<T> for [BGRA<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [Gray<T>]
[src]
impl<T> ComponentSlice<T> for [Gray<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [GrayAlpha<T>]
[src]
impl<T> ComponentSlice<T> for [GrayAlpha<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [RGB<T>]
[src]
impl<T> ComponentSlice<T> for [RGB<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T> ComponentSlice<T> for [RGBA<T>]
[src]
impl<T> ComponentSlice<T> for [RGBA<T>]
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |