pub trait UlpsTolerance<Rhs = Self>where
Rhs: ?Sized,{
type T: Debug + Copy;
const DEFAULT: Self::T;
// Provided method
fn default_ulps(&self, _other: &Rhs) -> Self::T { ... }
}Expand description
A trait specifying the tolerance used for ulps based comparisons.
This tolerance if for the type implementing this trait comparing to Rhs.
Required Associated Constants§
Required Associated Types§
Provided Methods§
Sourcefn default_ulps(&self, _other: &Rhs) -> Self::T
fn default_ulps(&self, _other: &Rhs) -> Self::T
Returns the default ulps tolerance value that is used when comparing self with other.
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.