#[non_exhaustive]pub enum ParameterCoercion {
Exact,
StringToI64,
StringToU64,
StringToBool,
I64ToU64,
U64ToI64,
}Expand description
Explicit deterministic coercion applied after source selection.
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.
Exact
Source and target kinds must match exactly.
StringToI64
Parse a UTF-8 string as a signed integer.
StringToU64
Parse a UTF-8 string as an unsigned integer.
StringToBool
Parse exactly true or false as a boolean.
I64ToU64
Convert a non-negative signed integer to unsigned.
U64ToI64
Convert an unsigned integer that fits into i64.
Implementations§
Trait Implementations§
Source§impl Clone for ParameterCoercion
impl Clone for ParameterCoercion
impl Copy for ParameterCoercion
Source§impl Debug for ParameterCoercion
impl Debug for ParameterCoercion
Source§impl Default for ParameterCoercion
impl Default for ParameterCoercion
impl Eq for ParameterCoercion
Source§impl Hash for ParameterCoercion
impl Hash for ParameterCoercion
Source§impl Ord for ParameterCoercion
impl Ord for ParameterCoercion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ParameterCoercion
impl PartialEq for ParameterCoercion
Source§impl PartialOrd for ParameterCoercion
impl PartialOrd for ParameterCoercion
impl StructuralPartialEq for ParameterCoercion
Auto Trait Implementations§
impl Forget for ParameterCoercion
impl Freeze for ParameterCoercion
impl Move for ParameterCoercion
impl RefUnwindSafe for ParameterCoercion
impl Send for ParameterCoercion
impl Sync for ParameterCoercion
impl Unpin for ParameterCoercion
impl UnsafeUnpin for ParameterCoercion
impl UnwindSafe for ParameterCoercion
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