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