#[non_exhaustive]#[repr(u32)]pub enum ImageChannels {
C1 = 0,
C2 = 1,
C3 = 2,
C4 = 3,
AC4 = 4,
P2 = 5,
P3 = 6,
P4 = 7,
}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 ImageChannels
impl Clone for ImageChannels
Source§fn clone(&self) -> ImageChannels
fn clone(&self) -> ImageChannels
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 ImageChannels
Source§impl Debug for ImageChannels
impl Debug for ImageChannels
Source§impl Display for ImageChannels
impl Display for ImageChannels
impl Eq for ImageChannels
Source§impl From<ImageChannels> for u32
impl From<ImageChannels> for u32
Source§fn from(enum_value: ImageChannels) -> Self
fn from(enum_value: ImageChannels) -> Self
Converts to this type from the input type.
Source§impl From<ImageChannels> for NppiChannels
impl From<ImageChannels> for NppiChannels
Source§fn from(value: ImageChannels) -> Self
fn from(value: ImageChannels) -> Self
Converts to this type from the input type.
Source§impl From<NppiChannels> for ImageChannels
impl From<NppiChannels> for ImageChannels
Source§fn from(value: NppiChannels) -> Self
fn from(value: NppiChannels) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageChannels
impl Hash for ImageChannels
Source§impl PartialEq for ImageChannels
impl PartialEq for ImageChannels
Source§fn eq(&self, other: &ImageChannels) -> bool
fn eq(&self, other: &ImageChannels) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageChannels
Source§impl TryFrom<u32> for ImageChannels
impl TryFrom<u32> for ImageChannels
Source§type Error = TryFromPrimitiveError<ImageChannels>
type Error = TryFromPrimitiveError<ImageChannels>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ImageChannels
impl TryFromPrimitive for ImageChannels
const NAME: &'static str = "ImageChannels"
type Primitive = u32
type Error = TryFromPrimitiveError<ImageChannels>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ImageChannels
impl RefUnwindSafe for ImageChannels
impl Send for ImageChannels
impl Sync for ImageChannels
impl Unpin for ImageChannels
impl UnsafeUnpin for ImageChannels
impl UnwindSafe for ImageChannels
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