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§

source

fn raw_mut_ptr(&mut self) -> *mut Self::D

source

fn image_slice_mut(&mut self) -> &mut [Self::D]

Get the mutable raw data for the entire image, including padding.

Provided Methods§

source

fn valid_row_iter_mut( &mut self, size: &FastImageSize ) -> Result<ValidChunksExactMut<'_, Self::D>>

Iterate over elements in each image row. Returns mutable valid slices.

source

fn pixel_slice_mut(&mut self, row: usize, col: usize) -> &mut [Self::D]

Implementors§

source§

impl<'a, C, D> MutableFastImage for MutableFastImageView<'a, C, D>
where C: 'static + ChanTrait, D: 'static + Copy + Debug + PartialEq,

source§

impl<C, D> MutableFastImage for FastImageData<C, D>
where C: ChanTrait, D: Copy + PartialEq,