(self, other: Self)
| 18 | } |
| 19 | |
| 20 | pub fn compare(self, other: Self) -> Self { |
| 21 | match self { |
| 22 | SOrd { strong: true, ordering: Ordering::Equal } => other, |
| 23 | SOrd { strong: false, ordering: Ordering::Equal } => { |
| 24 | SOrd { strong: false, ordering: other.ordering } |
| 25 | }, |
| 26 | _ => self, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | pub fn cmp<A: Ord>(x: &A, y: &A) -> Self { |
| 31 | SOrd { strong: true, ordering: x.cmp(y) } |
no outgoing calls