pub trait Equal<Rhs = Self>where
    Rhs: ?Sized,{
    type Output;

    // Required methods
    fn is_equal(&self, other: &Rhs) -> Self::Output;
    fn is_not_equal(&self, other: &Rhs) -> Self::Output;
}
Expand description

Trait for equality comparisons.

Required Associated Types§

type Output

Required Methods§

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

Returns true if self and other are equal.

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

Returns true if self and other are not equal.

Implementations on Foreign Types§

§

impl<E, I> Equal<Integer<E, I>> for Integer<E, I>where E: Environment, I: IntegerType,

§

fn is_equal( &self, other: &Integer<E, I> ) -> <Integer<E, I> as Equal<Integer<E, I>>>::Output

Returns true if self and other are equal.

§

fn is_not_equal( &self, other: &Integer<E, I> ) -> <Integer<E, I> as Equal<Integer<E, I>>>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<E>

Implementors§

§

impl<E> Equal<Address<E>> for Address<E>where E: Environment,

§

type Output = Boolean<E>

§

impl<E> Equal<Group<E>> for Group<E>where E: Environment,

§

type Output = Boolean<E>

§

impl<E> Equal<Scalar<E>> for Scalar<E>where E: Environment,

§

type Output = Boolean<E>

§

impl<E> Equal<StringType<E>> for StringType<E>where E: Environment,

§

type Output = Boolean<E>

§

impl<E> Equal<Boolean<E>> for Boolean<E>where E: Environment,

§

type Output = Boolean<E>

§

impl<E> Equal<Field<E>> for Field<E>where E: Environment,

§

type Output = Boolean<E>

source§

impl<N: Network> Equal<Literal<N>> for Literal<N>

§

type Output = Boolean<N>

source§

impl<N: Network> Equal<Plaintext<N>> for Plaintext<N>

§

type Output = Boolean<N>

source§

impl<N: Network> Equal<Value<N>> for Value<N>

§

type Output = Boolean<N>

source§

impl<N: Network> Equal<Ciphertext<N>> for Ciphertext<N>

§

type Output = Boolean<N>

source§

impl<N: Network> Equal<Identifier<N>> for Identifier<N>

§

type Output = Boolean<N>

source§

impl<N: Network, Private: Visibility<Boolean = Boolean<N>>> Equal<Entry<N, Private>> for Entry<N, Private>

§

type Output = Boolean<N>

source§

impl<N: Network, Private: Visibility<Boolean = Boolean<N>>> Equal<Owner<N, Private>> for Owner<N, Private>

§

type Output = Boolean<N>

source§

impl<N: Network, Private: Visibility<Boolean = Boolean<N>>> Equal<Record<N, Private>> for Record<N, Private>

§

type Output = Boolean<N>