#[non_exhaustive]#[repr(u32)]pub enum ImageNormalization {
Infinity = 0,
L1 = 1,
L2 = 2,
}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.
Trait Implementations§
Source§impl Clone for ImageNormalization
impl Clone for ImageNormalization
Source§fn clone(&self) -> ImageNormalization
fn clone(&self) -> ImageNormalization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageNormalization
Source§impl Debug for ImageNormalization
impl Debug for ImageNormalization
Source§impl Display for ImageNormalization
impl Display for ImageNormalization
impl Eq for ImageNormalization
Source§impl From<ImageNormalization> for u32
impl From<ImageNormalization> for u32
Source§fn from(enum_value: ImageNormalization) -> Self
fn from(enum_value: ImageNormalization) -> Self
Converts to this type from the input type.
Source§impl From<ImageNormalization> for NppiNorm
impl From<ImageNormalization> for NppiNorm
Source§fn from(value: ImageNormalization) -> Self
fn from(value: ImageNormalization) -> Self
Converts to this type from the input type.
Source§impl From<NppiNorm> for ImageNormalization
impl From<NppiNorm> for ImageNormalization
Source§impl Hash for ImageNormalization
impl Hash for ImageNormalization
Source§impl PartialEq for ImageNormalization
impl PartialEq for ImageNormalization
Source§fn eq(&self, other: &ImageNormalization) -> bool
fn eq(&self, other: &ImageNormalization) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageNormalization
Source§impl TryFrom<u32> for ImageNormalization
impl TryFrom<u32> for ImageNormalization
Source§type Error = TryFromPrimitiveError<ImageNormalization>
type Error = TryFromPrimitiveError<ImageNormalization>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ImageNormalization
impl TryFromPrimitive for ImageNormalization
const NAME: &'static str = "ImageNormalization"
type Primitive = u32
type Error = TryFromPrimitiveError<ImageNormalization>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ImageNormalization
impl RefUnwindSafe for ImageNormalization
impl Send for ImageNormalization
impl Sync for ImageNormalization
impl Unpin for ImageNormalization
impl UnsafeUnpin for ImageNormalization
impl UnwindSafe for ImageNormalization
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