pub struct ImageRef<'a, P> { /* private fields */ }
Expand description
Reference to an image or another reference
Implementations§
Trait Implementations§
Source§impl<P> Image for ImageRef<'_, P>
impl<P> Image for ImageRef<'_, 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§fn as_ref(&self) -> ImageRef<'_, Self::Pixel>
fn as_ref(&self) -> ImageRef<'_, Self::Pixel>
Create immutable view to the image of the concrete type of
ImageRef
fn write(self, fmt: ImageWriteFormat, out: impl Write) -> Result<(), Error>
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