pub trait OrdLogic: PartialOrdLogic {
// Required method
fn lt_log_total(self, other: Self);
// Provided method
fn cmp_log(self, other: Self) -> Ordering { ... }
}Expand description
Types that implement this trait must have a total order (Ord trait in Rust).
Required Methods§
Sourcefn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
The order is total
logic(law) ⚠
ensures
self < other || self == other || other < selfProvided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl OrdLogic for bool
impl OrdLogic for bool
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for char
impl OrdLogic for char
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for i8
impl OrdLogic for i8
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for i16
impl OrdLogic for i16
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for i32
impl OrdLogic for i32
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for i64
impl OrdLogic for i64
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for i128
impl OrdLogic for i128
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for isize
impl OrdLogic for isize
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for u8
impl OrdLogic for u8
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for u16
impl OrdLogic for u16
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for u32
impl OrdLogic for u32
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for u64
impl OrdLogic for u64
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for u128
impl OrdLogic for u128
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl OrdLogic for usize
impl OrdLogic for usize
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl<A: OrdLogic, B: OrdLogic> OrdLogic for (A, B)
impl<A: OrdLogic, B: OrdLogic> OrdLogic for (A, B)
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl<T: OrdLogic> OrdLogic for &T
impl<T: OrdLogic> OrdLogic for &T
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic ⚠
ensures
self < other || self == other || other < selfSource§impl<T: OrdLogic> OrdLogic for Option<T>
impl<T: OrdLogic> OrdLogic for Option<T>
Source§fn lt_log_total(self, other: Self)
fn lt_log_total(self, other: Self)
logic(law) ⚠
ensures
self < other || self == other || other < self