[−][src]Trait rect_iter::Get2D
A trait which provides common access interfaces to 2D Array type.
Associated Types
type Item
Required methods
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
Provided methods
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>
&self,
p: P
) -> Result<&Self::Item, IndexError>
Implementations on Foreign Types
impl<D> Get2D for Vec<Vec<D>>
[src]
type Item = D
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
[src]
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
impl<P, C> Get2D for ImageBuffer<P, C> where
P: Pixel + 'static,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]>,
[src]
P: Pixel + 'static,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]>,
type Item = P
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
[src]
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
impl<S: Data> Get2D for ArrayBase<S, Ix2>
[src]
type Item = S::Elem
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
[src]
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>