Lines Matching defs:cmp
7 use std::{cmp, fmt, ops};
240 // The implementation of cmp is simplified by assuming that the struct is
242 fn cmp(&self, other: &TimeSpec) -> cmp::Ordering {
244 self.tv_nsec().cmp(&other.tv_nsec())
246 self.tv_sec().cmp(&other.tv_sec())
252 fn partial_cmp(&self, other: &TimeSpec) -> Option<cmp::Ordering> {
253 Some(self.cmp(other))
478 // The implementation of cmp is simplified by assuming that the struct is
480 fn cmp(&self, other: &TimeVal) -> cmp::Ordering {
482 self.tv_usec().cmp(&other.tv_usec())
484 self.tv_sec().cmp(&other.tv_sec())
490 fn partial_cmp(&self, other: &TimeVal) -> Option<cmp::Ordering> {
491 Some(self.cmp(other))