Trait Stride

Source
pub trait Stride {
    // Required method
    fn stride(&self) -> usize;
}
Expand description

An image whose data is stored such that successive rows are a stride apart.

This is sometimes also called “pitch”.

Required Methods§

Source

fn stride(&self) -> usize

the width (in bytes) of each row of image data

This is sometimes also called “pitch”.

Implementors§

Source§

impl<F: PixelFormat> Stride for CowImage<'_, F>

Source§

impl<FMT: PixelFormat> Stride for ImageRef<'_, FMT>

Source§

impl<FMT: PixelFormat> Stride for ImageRefMut<'_, FMT>

Source§

impl<FMT: PixelFormat> Stride for OImage<FMT>