Skip to main content

Distance

Trait Distance 

Source
pub trait Distance:
    Copy
    + Clone
    + PartialEq
    + PartialOrd
    + Eq
    + Ord
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Rem<Output = Self>
    + Debug
    + From<f32>
    + Into<f32>
    + Hash
    + DistanceProtoConvert {
    // Required methods
    fn next_up(&self) -> Self;
    fn zero() -> Self;
    fn max_value() -> Self;
    fn min_value() -> Self;
}
Expand description

A totally-ordered distance metric value.

Required Methods§

Source

fn next_up(&self) -> Self

Source

fn zero() -> Self

Source

fn max_value() -> Self

Source

fn min_value() -> Self

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§