Lines Matching defs:cmp
4 use std::cmp::Ordering;
77 fn cmp(&self, rhs: &Self) -> Ordering {
78 Lookup::new(&self.0).cmp(Lookup::new(&rhs.0))
84 Some(self.cmp(rhs))
112 fn cmp(&self, rhs: &Self) -> Ordering {
116 .cmp(rhs.0.bytes().map(CaseAgnosticByte))
122 Some(self.cmp(rhs))
140 fn cmp(&self, rhs: &Self) -> Ordering {
141 self.0.to_ascii_lowercase().cmp(&rhs.0.to_ascii_lowercase())
147 Some(self.cmp(rhs))
155 self.cmp(rhs) == Ordering::Equal