[go: up one dir, main page]

Trait equator::Cmp

source ·
pub trait Cmp<Lhs: ?Sized, Rhs: ?Sized>: Sized {
    // Required method
    fn test(&self, lhs: &Lhs, rhs: &Rhs) -> bool;
}

Required Methods§

source

fn test(&self, lhs: &Lhs, rhs: &Rhs) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Lhs: ?Sized, Rhs: ?Sized, C: Cmp<Lhs, Rhs>> Cmp<Lhs, Rhs> for &C

source§

fn test(&self, lhs: &Lhs, rhs: &Rhs) -> bool

Implementors§

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialEq<Rhs>> Cmp<Lhs, Rhs> for Eq

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialEq<Rhs>> Cmp<Lhs, Rhs> for Ne

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialOrd<Rhs>> Cmp<Lhs, Rhs> for Ge

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialOrd<Rhs>> Cmp<Lhs, Rhs> for Gt

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialOrd<Rhs>> Cmp<Lhs, Rhs> for Le

source§

impl<Rhs: ?Sized, Lhs: ?Sized + PartialOrd<Rhs>> Cmp<Lhs, Rhs> for Lt