pub trait Matchable { // Required method fn distance(&self, other: &Self) -> usize; }
定义一个可匹配的特征,要求实现计算距离的方法
计算两个特征之间的距离
other
返回两个特征之间的距离