pub trait Ulps {
type U: Copy + NumCast;
// Required methods
fn ulps(&self, other: &Self) -> <Self as Ulps>::U;
fn next(&self) -> Self;
fn prev(&self) -> Self;
}
Expand description
A trait for floating point numbers which computes the number of representable values or ULPs (Units of Least Precision) that separate the two given values.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.