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§
source§impl<'a, C> Debug for ImageMutRef<'a, C>
impl<'a, C> Debug for ImageMutRef<'a, C>
source§impl<'a, P> Image for ImageMutRef<'a, P>
impl<'a, P> Image for ImageMutRef<'a, P>
source§fn 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
source§fn 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.source§impl<'a, P> ImageMut for ImageMutRef<'a, P>
impl<'a, P> ImageMut for ImageMutRef<'a, P>
source§fn 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
source§fn 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.source§fn as_mut(&mut self) -> ImageMutRef<'_, Self::Pixel>
fn as_mut(&mut self) -> ImageMutRef<'_, Self::Pixel>
Create concrete type reference to the image
Auto Trait Implementations§
impl<'a, C> Freeze for ImageMutRef<'a, C>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more