Enum show_image::tch::TensorPixelFormat
source · pub enum TensorPixelFormat {
Planar(PixelFormat),
Interlaced(PixelFormat),
Guess(ColorFormat),
}
Available on crate feature
tch
only.Expand description
The pixel format of a tensor, or a color format to guess the pixel format.
Variants§
Planar(PixelFormat)
The tensor has planar pixel data.
Interlaced(PixelFormat)
The tensor has interlaced pixel data.
Guess(ColorFormat)
The library should guess if the pixel data is planar or interlaced.
Trait Implementations§
source§impl Clone for TensorPixelFormat
impl Clone for TensorPixelFormat
source§fn clone(&self) -> TensorPixelFormat
fn clone(&self) -> TensorPixelFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TensorPixelFormat
impl Debug for TensorPixelFormat
source§impl PartialEq for TensorPixelFormat
impl PartialEq for TensorPixelFormat
source§fn eq(&self, other: &TensorPixelFormat) -> bool
fn eq(&self, other: &TensorPixelFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TensorPixelFormat
impl Eq for TensorPixelFormat
impl StructuralPartialEq for TensorPixelFormat
Auto Trait Implementations§
impl Freeze for TensorPixelFormat
impl RefUnwindSafe for TensorPixelFormat
impl Send for TensorPixelFormat
impl Sync for TensorPixelFormat
impl Unpin for TensorPixelFormat
impl UnwindSafe for TensorPixelFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.