Trait rect_iter::Get2D[][src]

pub trait Get2D {
    type Item;
    fn try_get_xy<T: ToPrimitive>(
        &self,
        x: T,
        y: T
    ) -> Result<&Self::Item, IndexError>; fn get_xy<T: ToPrimitive>(&self, x: T, y: T) -> &Self::Item { ... }
fn get_p<T: ToPrimitive, P: IntoTuple2<T>>(&self, p: P) -> &Self::Item { ... }
fn try_get_p<T: ToPrimitive, P: IntoTuple2<T>>(
        &self,
        p: P
    ) -> Result<&Self::Item, IndexError> { ... } }

A trait which provides common access interfaces to 2D Array type.

Associated Types

Required Methods

Provided Methods

Implementations on Foreign Types

impl<D> Get2D for Vec<Vec<D>>
[src]

impl<P, C> Get2D for ImageBuffer<P, C> where
    P: Pixel + 'static,
    P::Subpixel: 'static,
    C: Deref<Target = [P::Subpixel]>, 
[src]

impl<S: Data> Get2D for ArrayBase<S, Ix2>
[src]

Implementors