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.
Implementations on Foreign Types
impl AsImageView for DynamicImage
[src]
impl AsImageView for DynamicImage
[src]This is supported on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl AsImageView for &DynamicImage
[src]
impl AsImageView for &DynamicImage
[src]This is supported on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl<P> AsImageView for ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
[src]
impl<P> AsImageView for ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
[src]This is supported on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl<P> AsImageView for &ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
[src]
impl<P> AsImageView for &ImageBuffer<P, Vec<u8>> where
P: Pixel<Subpixel = u8> + 'static,
[src]This is supported on crate feature
image
only.fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl<T: AsImageView> AsImageView for Box<T>
[src]
impl<T: AsImageView> AsImageView for Box<T>
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl<T: AsImageView> AsImageView for Arc<T>
[src]
impl<T: AsImageView> AsImageView for Arc<T>
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
Implementors
impl AsImageView for Image
[src]
impl AsImageView for Image
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl AsImageView for ArcImage
[src]
impl AsImageView for ArcImage
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl AsImageView for BoxImage
[src]
impl AsImageView for BoxImage
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
impl<'a> AsImageView for ImageView<'a>
[src]
impl<'a> AsImageView for ImageView<'a>
[src]