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