Skip to main content

ImageU8

Trait ImageU8 

Source
pub trait ImageU8 {
    // Required methods
    fn inner(&self) -> &image_u8;
    fn inner_mut(&mut self) -> &mut image_u8;
    fn data(&self) -> &[u8] ⓘ;
    fn data_mut(&mut self) -> &mut [u8] ⓘ;

    // Provided methods
    fn width(&self) -> i32 { ... }
    fn height(&self) -> i32 { ... }
    fn stride(&self) -> i32 { ... }
}

Required Methods§

Source

fn inner(&self) -> &image_u8

Source

fn inner_mut(&mut self) -> &mut image_u8

Source

fn data(&self) -> &[u8] ⓘ

Source

fn data_mut(&mut self) -> &mut [u8] ⓘ

Provided Methods§

Source

fn width(&self) -> i32

Source

fn height(&self) -> i32

Source

fn stride(&self) -> i32

Implementors§