pub trait Measure<Rhs: ?Sized = Self> {
type Len: Default + Add<Output = Self::Len> + Sub<Output = Self::Len> + PartialEq;
// Required methods
fn len(&self) -> Self::Len;
fn distance(&self, other: &Rhs) -> Self::Len;
}Expand description
Distance between singletons.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".