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§
Sourcefn pixel_type(&self) -> Option<PixelType>
fn pixel_type(&self) -> Option<PixelType>
Returns pixel’s type of the image.
fn width(&self) -> u32
fn height(&self) -> u32
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.