(&self, other: &Self)
| 24 | |
| 25 | impl std::cmp::Ord for Kind { |
| 26 | fn cmp(&self, other: &Self) -> std::cmp::Ordering { |
| 27 | use std::cmp::Ordering; |
| 28 | match (self, &other) { |
| 29 | (Self::Topic, Self::Topic) => Ordering::Equal, |
| 30 | (Self::Topic, Self::Link) => Ordering::Less, |
| 31 | (Self::Link, Self::Topic) => Ordering::Greater, |
| 32 | (Self::Link, Self::Link) => Ordering::Equal, |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | impl std::cmp::PartialOrd for Kind { |