AsImageView

Trait AsImageView 

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

Trait for borrowing image data from a struct.

Required Methods§

Source

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

Get an image view for the object.

Implementations on Foreign Types§

Source§

impl AsImageView for &DynamicImage

Available on crate feature image only.
Source§

impl AsImageView for DynamicImage

Available on crate feature image only.
Source§

impl<P, Container> AsImageView for &ImageBuffer<P, Container>
where P: Pixel<Subpixel = u8> + PixelWithColorType, Container: Deref<Target = [u8]>,

Available on crate feature image only.
Source§

impl<P, Container> AsImageView for ImageBuffer<P, Container>
where P: Pixel<Subpixel = u8> + PixelWithColorType, Container: Deref<Target = [u8]>,

Available on crate feature image only.
Source§

impl<T: AsImageView> AsImageView for Box<T>

Source§

impl<T: AsImageView> AsImageView for Arc<T>

Implementors§