pub struct ReflectEqMode {
pub nan_equal: bool,
/* private fields */
}
Expand description
Parameter for ReflectEq
.
Fields§
§nan_equal: bool
When true
, NaN
values are considered equal to each other.
Implementations§
Source§impl ReflectEqMode
impl ReflectEqMode
Sourcepub fn default() -> ReflectEqMode
pub fn default() -> ReflectEqMode
Default equality, similar to #[derive(PartialEq)]
.
Sourcepub fn nan_equal() -> ReflectEqMode
pub fn nan_equal() -> ReflectEqMode
Equality where float NaN
values are considered equal to each other.
Useful in tests.
Trait Implementations§
Source§impl Debug for ReflectEqMode
impl Debug for ReflectEqMode
Source§impl Default for ReflectEqMode
impl Default for ReflectEqMode
Source§fn default() -> ReflectEqMode
fn default() -> ReflectEqMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReflectEqMode
impl RefUnwindSafe for ReflectEqMode
impl Send for ReflectEqMode
impl Sync for ReflectEqMode
impl Unpin for ReflectEqMode
impl UnwindSafe for ReflectEqMode
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