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