pub enum NumericTypePolicy {
PreserveType,
CompareMathematicalValue,
}Expand description
Whether Integer vs Number is treated as a type change.
Variants§
PreserveType
Integer(1) and Number(1.0) are different (TypeChanged). Default.
CompareMathematicalValue
Compare by mathematical value; Integer(1) and Number(1.0) are equal.
Trait Implementations§
Source§impl Clone for NumericTypePolicy
impl Clone for NumericTypePolicy
Source§fn clone(&self) -> NumericTypePolicy
fn clone(&self) -> NumericTypePolicy
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 NumericTypePolicy
Source§impl Debug for NumericTypePolicy
impl Debug for NumericTypePolicy
Source§impl Default for NumericTypePolicy
impl Default for NumericTypePolicy
Source§fn default() -> NumericTypePolicy
fn default() -> NumericTypePolicy
Returns the “default value” for a type. Read more
impl Eq for NumericTypePolicy
Source§impl PartialEq for NumericTypePolicy
impl PartialEq for NumericTypePolicy
impl StructuralPartialEq for NumericTypePolicy
Auto Trait Implementations§
impl Freeze for NumericTypePolicy
impl RefUnwindSafe for NumericTypePolicy
impl Send for NumericTypePolicy
impl Sync for NumericTypePolicy
impl Unpin for NumericTypePolicy
impl UnsafeUnpin for NumericTypePolicy
impl UnwindSafe for NumericTypePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.