SicImageDirectAccess

Trait SicImageDirectAccess 

Source
pub trait SicImageDirectAccess {
    // Provided methods
    fn get_pixel<I: GenericImageView>(&self, x: u32, y: u32) -> I::Pixel
       where Self: AsRef<I> { ... }
    fn width<I: GenericImageView>(&self) -> u32
       where Self: AsRef<I> { ... }
    fn height<I: GenericImageView>(&self) -> u32
       where Self: AsRef<I> { ... }
    fn dimensions<I: GenericImageView>(&self) -> (u32, u32)
       where Self: AsRef<I> { ... }
    fn pixels<I: GenericImageView>(&self) -> Pixels<'_, I>
       where Self: AsRef<I> { ... }
}

Provided Methods§

Source

fn get_pixel<I: GenericImageView>(&self, x: u32, y: u32) -> I::Pixel
where Self: AsRef<I>,

Source

fn width<I: GenericImageView>(&self) -> u32
where Self: AsRef<I>,

Source

fn height<I: GenericImageView>(&self) -> u32
where Self: AsRef<I>,

Source

fn dimensions<I: GenericImageView>(&self) -> (u32, u32)
where Self: AsRef<I>,

Source

fn pixels<I: GenericImageView>(&self) -> Pixels<'_, I>
where Self: AsRef<I>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SicImageDirectAccess for SicImage

Implementors§