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§
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§
Source§impl 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>
Source§impl 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>
Source§impl<P, Container> AsImageView for &ImageBuffer<P, Container>
Available on crate feature image
only.
impl<P, Container> AsImageView for &ImageBuffer<P, Container>
Available on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
Source§impl<P, Container> AsImageView for ImageBuffer<P, Container>
Available on crate feature image
only.
impl<P, Container> AsImageView for ImageBuffer<P, Container>
Available on crate feature
image
only.