1 2 3 4 5 6 7 8 9 10
use super::base::Feature; pub trait Descriptor where Self: Feature, { type Distance: 'static; fn get_distance(&self, other: &Self) -> Self::Distance; }