MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / partial_cmp

Method partial_cmp

os/src/timer.rs:39–43  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

37impl Eq for TimerCondVar {}
38impl 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
46impl Ord for TimerCondVar {

Callers 1

cmpMethod · 0.80

Calls 1

cmpMethod · 0.80

Tested by

no test coverage detected