Trait typerat::Cmp

source ·
pub trait Cmp<Rhs = Self> {
    type Output: Ordering;

    // Provided method
    fn cmp(&self, other: &Rhs) -> Self::Output { ... }
}
Expand description

Type-level comparison.

Required Associated Types§

source

type Output: Ordering

The resulting type after type-level comparison.

Provided Methods§

source

fn cmp(&self, other: &Rhs) -> Self::Output

Performs comparison.

Implementors§

source§

impl<Nl, Dl, Nr, Dr> Cmp<Q<Nr, Dr>> for Q<Nl, Dl>
where Self: PrivateCmpHelper<Q<Nr, Dr>>, Nl: Numerator<Dl>, Dl: Denominator, Nr: Numerator<Dr>, Dr: Denominator,

§

type Output = <Q<Nl, Dl> as PrivateCmpHelper<Q<Nr, Dr>>>::Output