Trait show_image::AsImageView [−][src]
pub trait AsImageView {
fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>;
}
Expand description
Trait for borrowing image data from a struct.
Required methods
fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
Get an image view for the object.
Implementations on Foreign Types
impl<P> AsImageView for ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
This is supported on crate feature image
only.
impl<P> AsImageView for ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
This is supported on crate feature
image
only.impl<P> AsImageView for &ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
This is supported on crate feature image
only.
impl<P> AsImageView for &ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
This is supported on crate feature
image
only.