Home
last modified time | relevance | path

Searched refs:partial_cmp (Results 1 – 25 of 57) sorted by relevance

123

/external/rust/crates/bytes/src/
Dbytes.rs626 fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> { in partial_cmp() method
627 self.as_slice().partial_cmp(other.as_slice()) in partial_cmp()
646 fn partial_cmp(&self, other: &[u8]) -> Option<cmp::Ordering> { in partial_cmp() method
647 self.as_slice().partial_cmp(other) in partial_cmp()
658 fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> { in partial_cmp() method
659 <[u8] as PartialOrd<[u8]>>::partial_cmp(self, other) in partial_cmp()
670 fn partial_cmp(&self, other: &str) -> Option<cmp::Ordering> { in partial_cmp() method
671 self.as_slice().partial_cmp(other.as_bytes()) in partial_cmp()
682 fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> { in partial_cmp() method
683 <[u8] as PartialOrd<[u8]>>::partial_cmp(self.as_bytes(), other) in partial_cmp()
[all …]
Dbytes_mut.rs1070 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp() method
1071 self.as_slice().partial_cmp(other.as_slice()) in partial_cmp()
1336 fn partial_cmp(&self, other: &[u8]) -> Option<cmp::Ordering> { in partial_cmp() method
1337 (**self).partial_cmp(other) in partial_cmp()
1348 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp() method
1349 <[u8] as PartialOrd<[u8]>>::partial_cmp(self, other) in partial_cmp()
1360 fn partial_cmp(&self, other: &str) -> Option<cmp::Ordering> { in partial_cmp() method
1361 (**self).partial_cmp(other.as_bytes()) in partial_cmp()
1372 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp() method
1373 <[u8] as PartialOrd<[u8]>>::partial_cmp(self.as_bytes(), other) in partial_cmp()
[all …]
/external/rust/crates/plotters/src/coord/ranged1d/combinators/
Dlinspace.rs44 values[0].partial_cmp(&values[1]) == Some(Ordering::Less) in search()
49 probe.partial_cmp(target).unwrap() in search()
51 target.partial_cmp(probe).unwrap() in search()
77 values[0].partial_cmp(&values[1]) == Some(Ordering::Less) in search()
82 probe.partial_cmp(target).unwrap() in search()
84 target.partial_cmp(probe).unwrap() in search()
114 values[0].partial_cmp(&values[1]) == Some(Ordering::Less) in search()
119 probe.partial_cmp(target).unwrap() in search()
121 target.partial_cmp(probe).unwrap() in search()
145 if left_delta.partial_cmp(&right_delta) == Some(Ordering::Less) { in search()
[all …]
/external/rust/crates/rayon/tests/
Dsort-panic-safe.rs26 self.partial_cmp(other) == Some(Ordering::Equal) in eq()
31 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() method
35 self.x.partial_cmp(&other.x) in partial_cmp()
41 self.partial_cmp(other).unwrap() in cmp()
/external/rust/crates/plotters/src/data/
Ddata_range.rs28 .map_or(Some(Ordering::Greater), |lbv: &T| lbv.partial_cmp(value)) in fitting_range()
35 .map_or(Some(Ordering::Less), |ubv: &T| ubv.partial_cmp(value)) in fitting_range()
Dquartiles.rs48 s.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap()); in new()
/external/rust/crates/bstr/src/
Dimpls.rs46 fn partial_cmp(&self, other: &$rhs) -> Option<Ordering> {
48 PartialOrd::partial_cmp(self.as_bytes(), other)
54 fn partial_cmp(&self, other: &$lhs) -> Option<Ordering> {
56 PartialOrd::partial_cmp(this, other.as_bytes())
281 fn partial_cmp(&self, other: &BString) -> Option<Ordering> { in partial_cmp() method
282 PartialOrd::partial_cmp(&self.bytes, &other.bytes) in partial_cmp()
289 self.partial_cmp(other).unwrap() in cmp()
652 fn partial_cmp(&self, other: &BStr) -> Option<Ordering> { in partial_cmp() method
653 PartialOrd::partial_cmp(self.as_bytes(), other.as_bytes()) in partial_cmp()
660 self.partial_cmp(other).unwrap() in cmp()
/external/rust/crates/rayon/src/iter/
Dtest.rs513 assert_eq!(a.par_iter().partial_cmp(&b), expected); in check_partial_cmp_short_circuit()
523 .partial_cmp(&b); in check_partial_cmp_short_circuit()
542 assert_eq!(a.par_iter().partial_cmp(&b), expected); in check_partial_cmp_nan_short_circuit()
552 .partial_cmp(&b); in check_partial_cmp_nan_short_circuit()
565 let result = a.partial_cmp(b); in check_partial_cmp_direct()
572 let par_result = (0..1024).into_par_iter().partial_cmp(0..1024); in check_partial_cmp_to_seq()
573 let seq_result = (0..1024).partial_cmp(0..1024); in check_partial_cmp_to_seq()
584 let par_result = a[i..].par_iter().partial_cmp(b[i..].par_iter()); in check_partial_cmp_rng_to_seq()
585 let seq_result = a[i..].iter().partial_cmp(b[i..].iter()); in check_partial_cmp_rng_to_seq()
596 let result = a.partial_cmp(b); in check_partial_cmp_lt_direct()
[all …]
Dmod.rs2399 fn partial_cmp<I>(self, other: I) -> Option<Ordering> in partial_cmp() method
2407 PartialOrd::partial_cmp(&x, &y) in partial_cmp()
2459 self.partial_cmp(other) == Some(Ordering::Less) in lt()
2470 let ord = self.partial_cmp(other); in le()
2482 self.partial_cmp(other) == Some(Ordering::Greater) in gt()
2493 let ord = self.partial_cmp(other); in ge()
/external/rust/crates/plotters-backend/src/rasterizer/
Dpolygon.rs51 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() method
52 self.get_slave_pos().partial_cmp(&other.get_slave_pos()) in partial_cmp()
67 .partial_cmp(&other.get_slave_pos()) in cmp()
/external/rust/cxx/macro/src/
Dderive.rs198 match ::std::cmp::PartialOrd::partial_cmp(&self.#fields, &other.#fields) { in struct_partial_ord()
209 fn partial_cmp(&self, other: &Self) -> ::std::option::Option<::std::cmp::Ordering> { in struct_partial_ord()
276 fn partial_cmp(&self, other: &Self) -> ::std::option::Option<::std::cmp::Ordering> { in enum_partial_ord()
277 ::std::cmp::PartialOrd::partial_cmp(&self.repr, &other.repr) in enum_partial_ord()
/external/rust/crates/regex/src/
Dinput.rs424 fn partial_cmp(&self, other: &char) -> Option<Ordering> { in partial_cmp() method
425 self.0.partial_cmp(&(*other as u32)) in partial_cmp()
431 fn partial_cmp(&self, other: &Char) -> Option<Ordering> { in partial_cmp() method
432 (*self as u32).partial_cmp(&other.0) in partial_cmp()
/external/rust/crates/log/src/kv/
Dkey.rs83 fn partial_cmp(&self, other: &Key<'ko>) -> Option<cmp::Ordering> { in partial_cmp() method
84 self.as_str().partial_cmp(other.as_str()) in partial_cmp()
/external/rust/crates/codespan-reporting/src/
Ddiagnostic.rs48 fn partial_cmp(&self, other: &Severity) -> Option<std::cmp::Ordering> { in partial_cmp() method
49 u8::partial_cmp(&self.to_cmp_int(), &other.to_cmp_int()) in partial_cmp()
/external/rust/cxx/src/
Dcxx_string.rs191 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() method
192 self.as_bytes().partial_cmp(other.as_bytes()) in partial_cmp()
/external/rust/crates/half/src/
Dbfloat.rs505 fn partial_cmp(&self, other: &bf16) -> Option<Ordering> { in partial_cmp() method
943 assert_eq!(zero.partial_cmp(&neg_zero), Some(Ordering::Equal)); in test_comparisons()
944 assert_eq!(neg_zero.partial_cmp(&zero), Some(Ordering::Equal)); in test_comparisons()
958 assert_eq!(one.partial_cmp(&neg_zero), Some(Ordering::Greater)); in test_comparisons()
959 assert_eq!(neg_zero.partial_cmp(&one), Some(Ordering::Less)); in test_comparisons()
973 assert_eq!(one.partial_cmp(&neg_one), Some(Ordering::Greater)); in test_comparisons()
974 assert_eq!(neg_one.partial_cmp(&one), Some(Ordering::Less)); in test_comparisons()
Dbinary16.rs814 fn partial_cmp(&self, other: &f16) -> Option<Ordering> { in partial_cmp() method
1238 assert_eq!(zero.partial_cmp(&neg_zero), Some(Ordering::Equal)); in test_comparisons()
1239 assert_eq!(neg_zero.partial_cmp(&zero), Some(Ordering::Equal)); in test_comparisons()
1253 assert_eq!(one.partial_cmp(&neg_zero), Some(Ordering::Greater)); in test_comparisons()
1254 assert_eq!(neg_zero.partial_cmp(&one), Some(Ordering::Less)); in test_comparisons()
1268 assert_eq!(one.partial_cmp(&neg_one), Some(Ordering::Greater)); in test_comparisons()
1269 assert_eq!(neg_one.partial_cmp(&one), Some(Ordering::Less)); in test_comparisons()
/external/rust/crates/rustversion/src/
Dbound.rs49 fn partial_cmp(&self, rhs: &Bound) -> Option<Ordering> { in partial_cmp() method
/external/rust/crates/plotters/src/element/
Dcandlestick.rs49 style: match open.partial_cmp(&close) { in new()
/external/rust/crates/syn/src/
Dlifetime.rs98 fn partial_cmp(&self, other: &Lifetime) -> Option<Ordering> { in partial_cmp() method
/external/crosvm/vm_memory/src/
Dguest_address.rs88 fn partial_cmp(&self, other: &GuestAddress) -> Option<Ordering> { in partial_cmp() method
/external/rust/crates/plotters/examples/
Derrorbar.rs80 g.sort_by(|a, b| a.partial_cmp(b).unwrap()); in down_sample()
/external/rust/crates/instant/src/
Dwasm.rs9 self.partial_cmp(other) in cmp()
/external/rust/crates/remain/src/
Datom.rs24 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() method
/external/rust/crates/rand/src/seq/
Dindex.rs332 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in sample_efraimidis_spirakis() method
333 self.key.partial_cmp(&other.key) in sample_efraimidis_spirakis()
340 self.partial_cmp(other).unwrap() in sample_efraimidis_spirakis()

123