Trait show_image::AsImageView
source · [−]pub trait AsImageView {
fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>;
}
Expand description
Trait for borrowing image data from a struct.
Required Methods
sourcefn 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
sourceimpl AsImageView for DynamicImage
Available on crate feature image
only.
impl AsImageView for DynamicImage
Available on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
sourceimpl AsImageView for &DynamicImage
Available on crate feature image
only.
impl AsImageView for &DynamicImage
Available on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
sourceimpl<P, Container> AsImageView for ImageBuffer<P, Container>where
P: Pixel<Subpixel = u8> + PixelWithColorType,
Container: Deref<Target = [u8]>,
Available on crate feature image
only.
impl<P, Container> AsImageView for ImageBuffer<P, Container>where
P: Pixel<Subpixel = u8> + PixelWithColorType,
Container: Deref<Target = [u8]>,
Available on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
sourceimpl<P, Container> AsImageView for &ImageBuffer<P, Container>where
P: Pixel<Subpixel = u8> + PixelWithColorType,
Container: Deref<Target = [u8]>,
Available on crate feature image
only.
impl<P, Container> AsImageView for &ImageBuffer<P, Container>where
P: Pixel<Subpixel = u8> + PixelWithColorType,
Container: Deref<Target = [u8]>,
Available on crate feature
image
only.