(&self, other: &Self)
| 37 | impl Eq for TimerCondVar {} |
| 38 | impl PartialOrd for TimerCondVar { |
| 39 | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { |
| 40 | let a = -(self.expire_ms as isize); |
| 41 | let b = -(other.expire_ms as isize); |
| 42 | Some(a.cmp(&b)) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | impl Ord for TimerCondVar { |