Trait rect_iter::GetMut2D
[−]
[src]
pub trait GetMut2D: Get2D { fn try_get_mut_xy<T: ToPrimitive>(
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>; fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item { ... } fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> &mut Self::Item { ... } fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError> { ... } }
Required Methods
fn try_get_mut_xy<T: ToPrimitive>(
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
Provided Methods
fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item
fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> &mut Self::Item
&mut self,
p: P
) -> &mut Self::Item
fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>
Implementations on Foreign Types
impl<D> GetMut2D for Vec<Vec<D>>
[src]
fn try_get_mut_xy<T: ToPrimitive>(
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
[src]
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item
[src]
fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> &mut Self::Item
[src]
&mut self,
p: P
) -> &mut Self::Item
fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>
[src]
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>
impl<P, C> GetMut2D for ImageBuffer<P, C> where
P: Pixel + 'static,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]> + DerefMut,
[src]
P: Pixel + 'static,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]> + DerefMut,
fn try_get_mut_xy<T: ToPrimitive>(
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
[src]
&mut self,
x: T,
y: T
) -> Result<&mut Self::Item, IndexError>
fn get_mut_xy<T: ToPrimitive>(&mut self, x: T, y: T) -> &mut Self::Item
[src]
fn get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> &mut Self::Item
[src]
&mut self,
p: P
) -> &mut Self::Item
fn try_get_mut_p<T: ToPrimitive, P: IntoTuple2<T>>(
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>
[src]
&mut self,
p: P
) -> Result<&mut Self::Item, IndexError>