Enum assert_json_diff::NumericMode
source · [−]pub enum NumericMode {
Strict,
AssumeFloat,
}
Expand description
How should numbers be compared.
Variants
Strict
Different numeric types aren’t considered equal.
AssumeFloat
All numeric types are converted to float before comparison.
Trait Implementations
sourceimpl Clone for NumericMode
impl Clone for NumericMode
sourcefn clone(&self) -> NumericMode
fn clone(&self) -> NumericMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NumericMode
impl Debug for NumericMode
sourceimpl PartialEq<NumericMode> for NumericMode
impl PartialEq<NumericMode> for NumericMode
impl Copy for NumericMode
impl Eq for NumericMode
impl StructuralEq for NumericMode
impl StructuralPartialEq for NumericMode
Auto Trait Implementations
impl RefUnwindSafe for NumericMode
impl Send for NumericMode
impl Sync for NumericMode
impl Unpin for NumericMode
impl UnwindSafe for NumericMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more