pub trait Measure<U = Self> {
    type Len: Default + Add<Output = Self::Len> + Sub<Output = Self::Len> + PartialEq;

    fn len(&self) -> Self::Len;
    fn distance(&self, other: &U) -> Self::Len;
}
Expand description

Distance between singletons.

Required Associated Types

Required Methods

Returns the length of the given element.

Returns the distance to the given other element.

Implementations on Foreign Types

Implementors