Trait fastfreeimage::MutableFastImage
source · pub trait MutableFastImage: FastImage {
// Required methods
fn raw_mut_ptr(&mut self) -> *mut Self::D;
fn image_slice_mut(&mut self) -> &mut [Self::D];
// Provided methods
fn valid_row_iter_mut(
&mut self,
size: &FastImageSize
) -> Result<ValidChunksExactMut<'_, Self::D>> { ... }
fn pixel_slice_mut(&mut self, row: usize, col: usize) -> &mut [Self::D] { ... }
}
Required Methods§
fn raw_mut_ptr(&mut self) -> *mut Self::D
sourcefn 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.
Provided Methods§
sourcefn 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.