pub struct ImageRef<'a, P> { /* private fields */ }
Expand description
Reference to an image or another reference
Implementations§
Trait Implementations§
source§impl<'a, P> Image for ImageRef<'a, P>
impl<'a, P> Image for ImageRef<'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.Auto Trait Implementations§
impl<'a, P> Freeze for ImageRef<'a, P>
impl<'a, P> RefUnwindSafe for ImageRef<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for ImageRef<'a, P>where
P: Sync,
impl<'a, P> Sync for ImageRef<'a, P>where
P: Sync,
impl<'a, P> Unpin for ImageRef<'a, P>
impl<'a, P> UnwindSafe for ImageRef<'a, P>where
P: RefUnwindSafe,
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