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]>
.
Tuple Fields of Box
0: BoxImage
Arc(ArcImage)
An image backed by an Arc<[u8]>
.
Tuple Fields of Arc
0: ArcImage
BoxDyn(Box<dyn AsImageView + Send>)
An image backed by a Box<dyn AsImageView>
.
Tuple Fields of BoxDyn
0: Box<dyn AsImageView + Send>
ArcDyn(Arc<dyn AsImageView + Sync + Send>)
An image backed by an Arc<dyn AsImageView>
.
Tuple Fields of ArcDyn
0: Arc<dyn AsImageView + Sync + Send>
Invalid(ImageDataError)
An invalid image that will always fail the conversion to ImageView
.
Tuple Fields of Invalid
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