pub trait Gap {
// Required method
fn measure_gap(&self, other: &Self) -> u64;
}Expand description
A trait for types that can calculate the gap between two values.
Required Methods§
Sourcefn measure_gap(&self, other: &Self) -> u64
fn measure_gap(&self, other: &Self) -> u64
Measure the gap between two values.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".