Trait Gap

Source
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§

Source

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Gap for u32

Source§

fn measure_gap(&self, other: &Self) -> u64

Implementors§