Rust library
partial_cmp
This is Rust standard-library source from the compiler version used in the run.
1954 #[rustc_const_unstable(feature = "const_cmp", issue = "143800")]1955 impl const PartialOrd for $t {1956 #[inline]1957 fn partial_cmp(&self, other: &Self) -> Option<Ordering> {1958 match (*self <= *other, *self >= *other) {1959 (false, false) => None,1960 (false, true) => Some(Greater),Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::cmp::impls::{core::cmp::PartialOrd<f16, f16>}::partial_cmp"]
axiom F16.Insts.CoreCmpPartialOrdF16.partial_cmp
: F16 → F16 → Result (Option Ordering)Other extracted objects at this span
Source details
| Declaration | F16.Insts.CoreCmpPartialOrdF16.partial_cmp |
|---|---|
| File | /rustc/library/core/src/cmp.rs |
| Lines | 1957:16–1957:71 |
| Program version | Preparation 1 |