Trait collate::Collate

source ·
pub trait Collate: Sized + Eq {
    type Value;

    // Required method
    fn cmp(&self, left: &Self::Value, right: &Self::Value) -> Ordering;
}
Expand description

A collator for type Value.

Required Associated Types§

Required Methods§

source

fn cmp(&self, left: &Self::Value, right: &Self::Value) -> Ordering

Return the collation of the left value relative to the right value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Ord> Collate for Collator<T>

§

type Value = T