Trait show_image::AsImageView[][src]

pub trait AsImageView {
    fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>;
}
Expand description

Trait for borriwing image data from a struct.

Required methods

fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>[src]

Expand description

Get an image view for the object.

Loading content...

Implementations on Foreign Types

impl AsImageView for DynamicImage[src]

This is supported on crate feature image only.

impl AsImageView for &DynamicImage[src]

This is supported on crate feature image only.

impl<P> AsImageView for ImageBuffer<P, Vec<u8>> where
    P: Pixel<Subpixel = u8> + 'static, 
[src]

This is supported on crate feature image only.

impl<P> AsImageView for &ImageBuffer<P, Vec<u8>> where
    P: Pixel<Subpixel = u8> + 'static, 
[src]

This is supported on crate feature image only.

impl<T: AsImageView> AsImageView for Box<T>[src]

impl<T: AsImageView> AsImageView for Arc<T>[src]

Loading content...

Implementors

Loading content...