pub struct ImageSlice<'a, P: 'a> { /* private fields */ }
Expand description
A shared view of some image data.
Implementations§
Source§impl<'a, P: 'a> ImageSlice<'a, P>
impl<'a, P: 'a> ImageSlice<'a, P>
Trait Implementations§
Source§impl<'a, P: Clone + 'a> Clone for ImageSlice<'a, P>
impl<'a, P: Clone + 'a> Clone for ImageSlice<'a, P>
Source§fn clone(&self) -> ImageSlice<'a, P>
fn clone(&self) -> ImageSlice<'a, P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, P: Debug + 'a> Debug for ImageSlice<'a, P>
impl<'a, P: Debug + 'a> Debug for ImageSlice<'a, P>
Source§impl<'a, P: Hash + 'a> Hash for ImageSlice<'a, P>
impl<'a, P: Hash + 'a> Hash for ImageSlice<'a, P>
Source§impl<'a, P: 'a> IntoIterator for ImageSlice<'a, P>
impl<'a, P: 'a> IntoIterator for ImageSlice<'a, P>
Source§impl<'a, P: Ord + 'a> Ord for ImageSlice<'a, P>
impl<'a, P: Ord + 'a> Ord for ImageSlice<'a, P>
Source§fn cmp(&self, other: &ImageSlice<'a, P>) -> Ordering
fn cmp(&self, other: &ImageSlice<'a, P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, P: PartialEq + 'a> PartialEq for ImageSlice<'a, P>
impl<'a, P: PartialEq + 'a> PartialEq for ImageSlice<'a, P>
Source§impl<'a, P: PartialOrd + 'a> PartialOrd for ImageSlice<'a, P>
impl<'a, P: PartialOrd + 'a> PartialOrd for ImageSlice<'a, P>
Source§impl<'a, P: 'a> ReadableImage<P> for ImageSlice<'a, P>
impl<'a, P: 'a> ReadableImage<P> for ImageSlice<'a, P>
Source§fn get(&self, loc: (usize, usize)) -> Option<&P>
fn get(&self, loc: (usize, usize)) -> Option<&P>
Performs an optional indexing by reference, gives
None
for out of bounds.Source§fn slice(&self, r: Range<(usize, usize)>) -> ImageSlice<'_, P>
fn slice(&self, r: Range<(usize, usize)>) -> ImageSlice<'_, P>
Grabs out a sub-slice of the data. Read more
Source§fn iter(&self) -> ImageRefIter<'_, P> ⓘ
fn iter(&self) -> ImageRefIter<'_, P> ⓘ
Lets you iterate any image by reference.
Source§fn to_vecimage(&self) -> VecImage<P>
fn to_vecimage(&self) -> VecImage<P>
This is like
to_owned
, you get your own version of the data. Read moreimpl<'a, P: Eq + 'a> Eq for ImageSlice<'a, P>
impl<'a, P: 'a> StructuralPartialEq for ImageSlice<'a, P>
Auto Trait Implementations§
impl<'a, P> Freeze for ImageSlice<'a, P>
impl<'a, P> RefUnwindSafe for ImageSlice<'a, P>where
P: RefUnwindSafe,
impl<'a, P> !Send for ImageSlice<'a, P>
impl<'a, P> !Sync for ImageSlice<'a, P>
impl<'a, P> Unpin for ImageSlice<'a, P>
impl<'a, P> UnwindSafe for ImageSlice<'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