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
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]
impl<D> Get2D for Vec<Vec<D>>
type Item = D
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
[src]
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
[src]
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
[src]
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>
[src]
fn try_get_p<T: ToPrimitive, P: IntoTuple2<T>>(
&self,
p: P
) -> 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]
impl<P, C> Get2D for ImageBuffer<P, C> where
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]
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
[src]
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
[src]
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>
[src]
fn try_get_p<T: ToPrimitive, P: IntoTuple2<T>>(
&self,
p: P
) -> Result<&Self::Item, IndexError>
impl<S: Data> Get2D for ArrayBase<S, Ix2>
[src]
impl<S: Data> Get2D for ArrayBase<S, Ix2>
type Item = S::Elem
fn try_get_xy<T: ToPrimitive>(
&self,
x: T,
y: T
) -> Result<&Self::Item, IndexError>
[src]
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
[src]
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
[src]
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>
[src]
fn try_get_p<T: ToPrimitive, P: IntoTuple2<T>>(
&self,
p: P
) -> Result<&Self::Item, IndexError>