Trait timely::order::PartialOrder
[−]
[src]
pub trait PartialOrder: Eq { fn less_equal(&self, other: &Self) -> bool; fn less_than(&self, other: &Self) -> bool { ... } }
A type that is partially ordered.
This trait is distinct from Rust's PartialOrd
trait, because the implementation
of that trait precludes a distinct Ord
implementation. We need an independent
trait if we want to have a partially ordered type that can also be sorted.
Required Methods
fn less_equal(&self, other: &Self) -> bool
Returns true iff one element is less than or equal to the other.
Provided Methods
fn less_than(&self, other: &Self) -> bool
Returns true iff one element is strictly less than the other.
Implementors
impl<S: PartialOrder, T: PartialOrder> PartialOrder for Summary<S, T>
impl<TOuter: PartialOrder, TInner: PartialOrder> PartialOrder for Product<TOuter, TInner>
impl PartialOrder for RootTimestamp
impl PartialOrder for RootSummary
impl<T: Timestamp> PartialOrder for Capability<T>
impl PartialOrder for u8
impl PartialOrder for u16
impl PartialOrder for u32
impl PartialOrder for u64
impl PartialOrder for usize
impl PartialOrder for i8
impl PartialOrder for i16
impl PartialOrder for i32
impl PartialOrder for i64
impl PartialOrder for isize
impl PartialOrder for ()