(&self, other: &Self)
| 37 | |
| 38 | impl<M: KernelMode> Ord for KId<M> { |
| 39 | fn cmp(&self, other: &Self) -> std::cmp::Ordering { |
| 40 | self.addr.cmp(&other.addr).then_with(|| meta_cmp(&self.name, &other.name)) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /// Derive ordering from MetaHash: hash both values and compare the digests. |