Trait timely::order::TotalOrder

source ·
pub trait TotalOrder: PartialOrder { }
Expand description

A type that is totally ordered.

This trait is a “carrier trait”, in the sense that it adds no additional functionality over PartialOrder, but instead indicates that the less_than and less_equal methods are total, meaning that x.less_than(&y) is equivalent to !y.less_equal(&x).

This trait is distinct from Rust’s Ord trait, because several implementors of PartialOrd also implement Ord for efficient canonicalization, deduplication, and other sanity-maintaining operations.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TotalOrder for i8

source§

impl TotalOrder for i16

source§

impl TotalOrder for i32

source§

impl TotalOrder for i64

source§

impl TotalOrder for i128

source§

impl TotalOrder for isize

source§

impl TotalOrder for u8

source§

impl TotalOrder for u16

source§

impl TotalOrder for u32

source§

impl TotalOrder for u64

source§

impl TotalOrder for u128

source§

impl TotalOrder for ()

source§

impl TotalOrder for usize

source§

impl TotalOrder for Duration

source§

impl<T1, T2> TotalOrder for (T1, T2)
where T1: TotalOrder, T2: TotalOrder,

Implementors§

source§

impl<T1, T2> TotalOrder for Product<T1, T2>
where T1: Empty, T2: TotalOrder,

source§

impl<T: TotalOrder> TotalOrder for Antichain<T>

source§

impl<T: TotalOrder> TotalOrder for AntichainRef<'_, T>