自定义 trait:用于测试“trait 方法(AssocFn)”的枚举与过滤
| 10 | |
| 11 | /// 自定义 trait:用于测试“trait 方法(AssocFn)”的枚举与过滤 |
| 12 | pub trait Analyzer { |
| 13 | fn normalize(&mut self); |
| 14 | fn score(&self) -> usize; |
| 15 | } |
| 16 | |
| 17 | impl Packet { |
| 18 | /// 结构体本身的方法 1:构造 |
nothing calls this directly
no outgoing calls
no test coverage detected