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)
Expand description
An image backed by a Box<[u8]>
.
Arc(ArcImage)
Expand description
An image backed by an Arc<[u8]>
.
BoxDyn(Box<dyn AsImageView + Send>)
Expand description
An image backed by a Box<dyn AsImageView>
.
ArcDyn(Arc<dyn AsImageView + Sync + Send>)
Expand description
An image backed by an Arc<dyn AsImageView>
.
Invalid(ImageDataError)
Expand description
An invalid image that will always fail the conversion to ImageView
.
Implementations
impl Image
[src]
impl Image
[src]pub fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
pub fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]Get a non-owning view of the image data.
Trait Implementations
impl AsImageView for Image
[src]
impl AsImageView for Image
[src]fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]
fn as_image_view(&self) -> Result<ImageView<'_>, ImageDataError>
[src]Get an image view for the object.
impl From<&'_ DrawTarget> for Image
[src]
impl From<&'_ DrawTarget> for Image
[src]raqote
only.fn from(other: &DrawTarget) -> Self
[src]
fn from(other: &DrawTarget) -> Self
[src]Performs the conversion.
impl From<Box<dyn AsImageView + 'static + Send, Global>> for Image
[src]
impl From<Box<dyn AsImageView + 'static + Send, Global>> for Image
[src]fn from(other: Box<dyn AsImageView + Send>) -> Self
[src]
fn from(other: Box<dyn AsImageView + Send>) -> Self
[src]Performs the conversion.
impl From<DrawTarget> for Image
[src]
impl From<DrawTarget> for Image
[src]raqote
only.fn from(other: DrawTarget) -> Self
[src]
fn from(other: DrawTarget) -> Self
[src]Performs the conversion.
impl From<DynamicImage> for Image
[src]
impl From<DynamicImage> for Image
[src]image
only.fn from(other: DynamicImage) -> Self
[src]
fn from(other: DynamicImage) -> Self
[src]Performs the conversion.
impl<P> From<ImageBuffer<P, Vec<u8, Global>>> for Image where
P: Pixel<Subpixel = u8> + 'static,
[src]
impl<P> From<ImageBuffer<P, Vec<u8, Global>>> for Image where
P: Pixel<Subpixel = u8> + 'static,
[src]image
only.fn from(other: ImageBuffer<P, Vec<u8>>) -> Self
[src]
fn from(other: ImageBuffer<P, Vec<u8>>) -> Self
[src]Performs the conversion.
impl<'a> From<Result<TensorImage<'a>, ImageDataError>> for Image
[src]
impl<'a> From<Result<TensorImage<'a>, ImageDataError>> for Image
[src]tch
only.fn from(other: Result<TensorImage<'a>, ImageDataError>) -> Self
[src]
fn from(other: Result<TensorImage<'a>, ImageDataError>) -> Self
[src]Performs the conversion.
impl<'a> From<TensorImage<'a>> for Image
[src]
impl<'a> From<TensorImage<'a>> for Image
[src]tch
only.fn from(other: TensorImage<'a>) -> Self
[src]
fn from(other: TensorImage<'a>) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Image
impl Send for Image
impl !Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,