#[non_exhaustive]#[repr(i32)]pub enum ImageDataFormat {
Unknown = -1,
Int8 = 0,
Int16 = 1,
Int32 = 2,
Float16 = 3,
Float32 = 4,
Max = 5,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ImageDataFormat
impl ImageDataFormat
pub const Default: ImageDataFormat = ImageDataFormat::Int8
Trait Implementations§
Source§impl Clone for ImageDataFormat
impl Clone for ImageDataFormat
Source§fn clone(&self) -> ImageDataFormat
fn clone(&self) -> ImageDataFormat
Returns a duplicate 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 ImageDataFormat
impl Debug for ImageDataFormat
Source§impl Hash for ImageDataFormat
impl Hash for ImageDataFormat
Source§impl PartialEq for ImageDataFormat
impl PartialEq for ImageDataFormat
impl Copy for ImageDataFormat
impl Eq for ImageDataFormat
impl StructuralPartialEq for ImageDataFormat
Auto Trait Implementations§
impl Freeze for ImageDataFormat
impl RefUnwindSafe for ImageDataFormat
impl Send for ImageDataFormat
impl Sync for ImageDataFormat
impl Unpin for ImageDataFormat
impl UnwindSafe for ImageDataFormat
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