Enum show_image::Image [−][src]
pub enum Image { Box(BoxImage), Arc(ArcImage), BoxDyn(Box<dyn AsImageView + Send>), ArcDyn(Arc<dyn AsImageView + Sync + Send>), Invalid(ImageDataError), }
Expand description
Variants
Box(BoxImage)
An image backed by a Box<[u8]>
.
Arc(ArcImage)
An image backed by an Arc<[u8]>
.
BoxDyn(Box<dyn AsImageView + Send>)
An image backed by a Box<dyn AsImageView>
.
ArcDyn(Arc<dyn AsImageView + Sync + Send>)
An image backed by an Arc<dyn AsImageView>
.
Invalid(ImageDataError)
An invalid image that will always fail the conversion to ImageView
.
Implementations
Get a non-owning view of the image data.
Trait Implementations
Get an image view for the object.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<'a> From<Result<TensorImage<'a>, ImageDataError>> for Image
This is supported on crate feature tch
only.
impl<'a> From<Result<TensorImage<'a>, ImageDataError>> for Image
This is supported on crate feature
tch
only.Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Image
impl !UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V