pub trait BitEq {
// Required method
fn bit_eq(&self, other: &Self) -> bool;
}
Expand description
An equivalence relation for types which normally wouldn’t have one, implemented using a bitwise comparison for floating point values.
See the docs on Eq
for more information.
Useful for creating caches based on exact values. See the module level docs for more information.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.