Struct fastfreeimage::FastImageView
source · pub struct FastImageView<'a, C, D>{ /* private fields */ }
Implementations§
source§impl<'a> FastImageView<'a, Chan1, u8>
impl<'a> FastImageView<'a, Chan1, u8>
Trait Implementations§
source§impl<'a, C, D> Debug for FastImageView<'a, C, D>
impl<'a, C, D> Debug for FastImageView<'a, C, D>
source§impl<'a, C, D> FastImage for &FastImageView<'a, C, D>
impl<'a, C, D> FastImage for &FastImageView<'a, C, D>
fn raw_ptr(&self) -> *const Self::D
source§fn image_slice(&self) -> &[Self::D]
fn image_slice(&self) -> &[Self::D]
Get the raw data for the entire image, including padding.
source§fn size(&self) -> &FastImageSize
fn size(&self) -> &FastImageSize
Get the image size in number of pixels.
source§fn valid_row_iter(
&self,
size: &FastImageSize
) -> Result<ValidChunksExact<'_, Self::D>>
fn valid_row_iter( &self, size: &FastImageSize ) -> Result<ValidChunksExact<'_, Self::D>>
Iterate over elements in each image row. Returns valid slices.
source§impl<'a, C, D> FastImage for FastImageView<'a, C, D>
impl<'a, C, D> FastImage for FastImageView<'a, C, D>
fn raw_ptr(&self) -> *const Self::D
source§fn image_slice(&self) -> &[Self::D]
fn image_slice(&self) -> &[Self::D]
Get the raw data for the entire image, including padding.
source§fn size(&self) -> &FastImageSize
fn size(&self) -> &FastImageSize
Get the image size in number of pixels.
source§fn valid_row_iter(
&self,
size: &FastImageSize
) -> Result<ValidChunksExact<'_, Self::D>>
fn valid_row_iter( &self, size: &FastImageSize ) -> Result<ValidChunksExact<'_, Self::D>>
Iterate over elements in each image row. Returns valid slices.
Auto Trait Implementations§
impl<'a, C, D> Freeze for FastImageView<'a, C, D>
impl<'a, C, D> RefUnwindSafe for FastImageView<'a, C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<'a, C, D> Send for FastImageView<'a, C, D>
impl<'a, C, D> Sync for FastImageView<'a, C, D>
impl<'a, C, D> Unpin for FastImageView<'a, C, D>where
C: Unpin,
impl<'a, C, D> UnwindSafe for FastImageView<'a, C, D>where
C: UnwindSafe,
D: 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