Trait HasProximity

Source
pub trait HasProximity:
    Eq
    + Hash
    + Clone
    + Debug
    + Ord
    + Serialize
    + for<'de> Deserialize<'de> {
    // Required method
    fn get_proximity(&self, other: &Self) -> Proximity
       where Self: Sized;
}

Required Methods§

Source

fn get_proximity(&self, other: &Self) -> Proximity
where Self: Sized,

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.

Implementors§