pub trait ExPartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> {
type ExternalTraitSpecificationFor: PartialOrd<Rhs>;
// Required methods
spec fn obeys_partial_cmp_spec() -> bool;
spec fn partial_cmp_spec(&self, other: &Rhs) -> Option<Ordering>;
exec fn partial_cmp(&self, other: &Rhs) -> r : Option<Ordering>;
exec fn lt(&self, other: &Rhs) -> r : bool;
exec fn le(&self, other: &Rhs) -> r : bool;
exec fn gt(&self, other: &Rhs) -> r : bool;
exec fn ge(&self, other: &Rhs) -> r : bool;
}
Required Associated Types§
type ExternalTraitSpecificationFor: PartialOrd<Rhs>
Required Methods§
Sourcespec fn obeys_partial_cmp_spec() -> bool
spec fn obeys_partial_cmp_spec() -> bool
Sourcespec fn partial_cmp_spec(&self, other: &Rhs) -> Option<Ordering>
spec fn partial_cmp_spec(&self, other: &Rhs) -> Option<Ordering>
Sourceexec fn partial_cmp(&self, other: &Rhs) -> r : Option<Ordering>
exec fn partial_cmp(&self, other: &Rhs) -> r : Option<Ordering>
ensures
Self::obeys_partial_cmp_spec() ==> r == self.partial_cmp_spec(other),
Sourceexec fn lt(&self, other: &Rhs) -> r : bool
exec fn lt(&self, other: &Rhs) -> r : bool
ensures
Self::obeys_partial_cmp_spec()
==> (r <==> self.partial_cmp_spec(other) == Some(Ordering::Less)),
Sourceexec fn le(&self, other: &Rhs) -> r : bool
exec fn le(&self, other: &Rhs) -> r : bool
ensures
Self::obeys_partial_cmp_spec()
==> (r
<==> self.partial_cmp_spec(other) matches Some(Ordering::Less | Ordering::Equal)),
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.