orbrs::common

Trait Matchable

source
pub trait Matchable {
    // Required method
    fn distance(&self, other: &Self) -> usize;
}
Expand description

定义一个可匹配的特征,要求实现计算距离的方法

Required Methods§

source

fn distance(&self, other: &Self) -> usize

计算两个特征之间的距离

§参数
  • other - 另一个特征
§返回值

返回两个特征之间的距离

Object Safety§

This trait is not object safe.

Implementors§