Trait libipld::cid::multihash::typenum::IsEqual[]

pub trait IsEqual<Rhs = Self> {
    type Output: Bit;
    fn is_equal(self, rhs: Rhs) -> Self::Output;
}
Expand description

A type operator that returns True if Self == Rhs, otherwise returns False.

Associated Types

type Output: Bit

The type representing either True or False

Required methods

fn is_equal(self, rhs: Rhs) -> Self::Output

Method returning True or False.

Implementors

impl<A, B> IsEqual<B> for A where
    A: Cmp<B> + IsEqualPrivate<B, <A as Cmp<B>>::Output>, 

type Output = <A as IsEqualPrivate<B, <A as Cmp<B>>::Output>>::Output

pub fn is_equal(self, rhs: B) -> <A as IsEqual<B>>::Output