IntoImageView

Trait IntoImageView 

Source
pub trait IntoImageView {
    // Required methods
    fn pixel_type(&self) -> Option<PixelType>;
    fn width(&self) -> u32;
    fn height(&self) -> u32;
    fn image_view<P: PixelTrait>(&self) -> Option<impl ImageView<Pixel = P>>;
}
Expand description

Conversion into an ImageView.

Required Methods§

Source

fn pixel_type(&self) -> Option<PixelType>

Returns pixel’s type of the image.

Source

fn width(&self) -> u32

Source

fn height(&self) -> u32

Source

fn image_view<P: PixelTrait>(&self) -> Option<impl ImageView<Pixel = P>>

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.

Implementors§