Struct rasterize::ImageMutRef
source · [−]pub struct ImageMutRef<'a, C> { /* private fields */ }Expand description
Mutable reference to an image or another mutable reference
Implementations
Trait Implementations
sourceimpl<'a, C> Debug for ImageMutRef<'a, C>
impl<'a, C> Debug for ImageMutRef<'a, C>
sourceimpl<'a, P> Image for ImageMutRef<'a, P>
impl<'a, P> Image for ImageMutRef<'a, P>
type Pixel = P
type Pixel = P
Pixel type
sourcefn get(&self, row: usize, col: usize) -> Option<&Self::Pixel>
fn get(&self, row: usize, col: usize) -> Option<&Self::Pixel>
Get pixel at the specified row and column
sourcefn view(
&self,
row_min: usize,
row_max: usize,
col_min: usize,
col_max: usize
) -> ImageRef<'_, Self::Pixel>
fn view(
&self,
row_min: usize,
row_max: usize,
col_min: usize,
col_max: usize
) -> ImageRef<'_, Self::Pixel>
Create sub-image bounded by constraints, _max values are not inclusive.
sourceimpl<'a, P> ImageMut for ImageMutRef<'a, P>
impl<'a, P> ImageMut for ImageMutRef<'a, P>
sourcefn get_mut(&mut self, row: usize, col: usize) -> Option<&mut Self::Pixel>
fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut Self::Pixel>
Get a mutable reference to the specified pixel
sourcefn view_mut(
&mut self,
row_min: usize,
row_max: usize,
col_min: usize,
col_max: usize
) -> ImageMutRef<'_, Self::Pixel>
fn view_mut(
&mut self,
row_min: usize,
row_max: usize,
col_min: usize,
col_max: usize
) -> ImageMutRef<'_, Self::Pixel>
Create mutable sub-image bounded by constraints, _max values are not inclusive.
sourcefn as_mut(&mut self) -> ImageMutRef<'_, Self::Pixel>
fn as_mut(&mut self) -> ImageMutRef<'_, Self::Pixel>
Create concrete type reference to the image
sourcefn iter_mut(&mut self) -> ImageMutIter<'_, Self::Pixel>ⓘNotable traits for ImageMutIter<'a, P>impl<'a, P> Iterator for ImageMutIter<'a, P> type Item = &'a mut P;
fn iter_mut(&mut self) -> ImageMutIter<'_, Self::Pixel>ⓘNotable traits for ImageMutIter<'a, P>impl<'a, P> Iterator for ImageMutIter<'a, P> type Item = &'a mut P;
Create iterator over mutable references to all the pixel of the image
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for ImageMutRef<'a, C> where
C: RefUnwindSafe,
impl<'a, C> Send for ImageMutRef<'a, C> where
C: Send,
impl<'a, C> Sync for ImageMutRef<'a, C> where
C: Sync,
impl<'a, C> Unpin for ImageMutRef<'a, C>
impl<'a, C> !UnwindSafe for ImageMutRef<'a, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more