Struct fastfreeimage::FastImageData
source · pub struct FastImageData<C, D>where
D: 'static,{ /* private fields */ }
Implementations§
source§impl<C, D> FastImageData<C, D>
impl<C, D> FastImageData<C, D>
source§impl FastImageData<Chan1, u8>
impl FastImageData<Chan1, u8>
Trait Implementations§
source§impl<C, D> Debug for FastImageData<C, D>
impl<C, D> Debug for FastImageData<C, D>
source§impl<C, D> Drop for FastImageData<C, D>where
D: 'static,
impl<C, D> Drop for FastImageData<C, D>where
D: 'static,
source§impl<'a, C, D> FastImage for &'a FastImageData<C, D>
impl<'a, C, D> FastImage for &'a FastImageData<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<C, D> FastImage for FastImageData<C, D>
impl<C, D> FastImage for FastImageData<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<C, D> MutableFastImage for FastImageData<C, D>
impl<C, D> MutableFastImage for FastImageData<C, D>
fn raw_mut_ptr(&mut self) -> *mut Self::D
source§fn image_slice_mut(&mut self) -> &mut [Self::D]
fn image_slice_mut(&mut self) -> &mut [Self::D]
Get the mutable raw data for the entire image, including padding.
source§fn valid_row_iter_mut(
&mut self,
size: &FastImageSize
) -> Result<ValidChunksExactMut<'_, Self::D>>
fn valid_row_iter_mut( &mut self, size: &FastImageSize ) -> Result<ValidChunksExactMut<'_, Self::D>>
Iterate over elements in each image row. Returns mutable valid slices.
fn pixel_slice_mut(&mut self, row: usize, col: usize) -> &mut [Self::D]
source§impl<C, D> PartialEq for FastImageData<C, D>
impl<C, D> PartialEq for FastImageData<C, D>
impl<C, D> Send for FastImageData<C, D>where
D: 'static,
Auto Trait Implementations§
impl<C, D> Freeze for FastImageData<C, D>
impl<C, D> RefUnwindSafe for FastImageData<C, D>where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> !Sync for FastImageData<C, D>
impl<C, D> Unpin for FastImageData<C, D>
impl<C, D> UnwindSafe for FastImageData<C, D>where
C: UnwindSafe,
D: UnwindSafe,
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