OrdKind

Trait OrdKind 

Source
pub trait OrdKind<T>: EqKind<T> + PartialOrdKind<T, T> {
    // Required method
    fn cmp<S: ShareKind>(a: &S::Inner<T>, b: &S::Inner<T>) -> Ordering;
}
Expand description

A way of comparing two shared value for ordering

Required Methods§

Source

fn cmp<S: ShareKind>(a: &S::Inner<T>, b: &S::Inner<T>) -> Ordering

Compare two shared values for ordering

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.

Implementors§

Source§

impl<T> OrdKind<T> for ByRef

Source§

impl<T: Ord> OrdKind<T> for ByVal
where Self: EqKind<T> + PartialOrdKind<T, T>,