Trait imgref::ImgExtMut

source ·
pub trait ImgExtMut<Pixel> {
    // Required methods
    fn rows_padded_mut(&mut self) -> ChunksMut<'_, Pixel>;
    fn as_mut(&mut self) -> ImgRefMut<'_, Pixel>;
}
Expand description

Additional methods that depend on buffer size

To use these methods you need:

use imgref::*;

Required Methods§

source

fn rows_padded_mut(&mut self) -> ChunksMut<'_, Pixel>

Iterate over the entire buffer as rows, including all padding

Rows will have up to stride width, but the last row may be shorter.

source

fn as_mut(&mut self) -> ImgRefMut<'_, Pixel>

Borrow the container mutably

Implementors§

source§

impl<Pixel, Container> ImgExtMut<Pixel> for Img<Container>
where Container: AsMut<[Pixel]>,