Skip to main content

OrdLogic

Trait OrdLogic 

Source
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§

Source

fn lt_log_total(self, other: Self)

The order is total

logic(law)

ensures

self < other || self == other || other < self

Provided Methods§

Source

fn cmp_log(self, other: Self) -> Ordering

The comparison operation.

logic(open, sealed)

/* Macro-generated */

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

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for char

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for i8

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for i16

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for i32

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for i64

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for i128

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for isize

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for u8

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for u16

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for u32

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for u64

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for u128

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl OrdLogic for usize

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl<A: OrdLogic, B: OrdLogic> OrdLogic for (A, B)

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl<T: OrdLogic> OrdLogic for &T

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

impl<T: OrdLogic> OrdLogic for Option<T>

Source§

fn lt_log_total(self, other: Self)

logic(law)

ensures

self < other || self == other || other < self

Implementors§