ImageExt

Trait ImageExt 

pub trait ImageExt: LayoutExt {
    // Required method
    fn get_image_data(&mut self) -> &mut ImageData;

    // Provided methods
    fn image_data(self, image_data: ImageData) -> Self { ... }
    fn sampling_mode(self, sampling_mode: SamplingMode) -> Self { ... }
    fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self { ... }
    fn image_cover(self, image_cover: ImageCover) -> Self { ... }
}

Required Methods§

fn get_image_data(&mut self) -> &mut ImageData

Provided Methods§

fn image_data(self, image_data: ImageData) -> Self

fn sampling_mode(self, sampling_mode: SamplingMode) -> Self

fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self

fn image_cover(self, image_cover: ImageCover) -> Self

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 ImageExt for Gif

Source§

fn get_image_data(&mut self) -> &mut ImageData

Source§

impl ImageExt for GifViewer

Source§

fn get_image_data(&mut self) -> &mut ImageData

Source§

impl ImageExt for ImageViewer

Source§

fn get_image_data(&mut self) -> &mut ImageData

Implementors§

§

impl ImageExt for Image