Trait CollateRef

Source
pub trait CollateRef<T: ?Sized>: Collate {
    // Required method
    fn cmp_ref(&self, left: &T, right: &T) -> Ordering;
}

Required Methods§

Source

fn cmp_ref(&self, left: &T, right: &T) -> Ordering

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

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<C: Collate> CollateRef<<C as Collate>::Value> for C