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> Equal for Address<E>where E: Environment,

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

§

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

§

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

Returns true if self and other are equal.

§

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

Returns true if self and other are not equal.

§

type Output = Boolean<E>

source§

impl<N> Equal for Argument<N>where N: Network,

source§

fn is_equal(&self, other: &Argument<N>) -> <Argument<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Argument<N>) -> <Argument<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal(&self, other: &Literal<N>) -> <Literal<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Literal<N>) -> <Literal<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal(&self, other: &Plaintext<N>) -> <Plaintext<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Plaintext<N>) -> <Plaintext<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal(&self, other: &Value<N>) -> <Value<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Value<N>) -> <Value<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

impl<N> Equal for ComputeKey<N>where N: Network,

source§

fn is_equal(&self, other: &ComputeKey<N>) -> <ComputeKey<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &ComputeKey<N> ) -> <ComputeKey<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

impl<N> Equal for Signature<N>where N: Network,

source§

fn is_equal(&self, other: &Signature<N>) -> <Signature<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Signature<N>) -> <Signature<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal(&self, other: &Ciphertext<N>) -> <Ciphertext<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &Ciphertext<N> ) -> <Ciphertext<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

impl<N> Equal for Future<N>where N: Network,

source§

fn is_equal(&self, other: &Future<N>) -> <Future<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &Future<N>) -> <Future<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal(&self, other: &Identifier<N>) -> <Identifier<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &Identifier<N> ) -> <Identifier<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

impl<N> Equal for ProgramID<N>where N: Network,

source§

fn is_equal(&self, other: &ProgramID<N>) -> <ProgramID<N> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal(&self, other: &ProgramID<N>) -> <ProgramID<N> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal( &self, other: &Entry<N, Private> ) -> <Entry<N, Private> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &Entry<N, Private> ) -> <Entry<N, Private> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal( &self, other: &Owner<N, Private> ) -> <Owner<N, Private> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &Owner<N, Private> ) -> <Owner<N, Private> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

source§

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

source§

fn is_equal( &self, other: &Record<N, Private> ) -> <Record<N, Private> as Equal>::Output

Returns true if self and other are equal.

source§

fn is_not_equal( &self, other: &Record<N, Private> ) -> <Record<N, Private> as Equal>::Output

Returns true if self and other are not equal.

§

type Output = Boolean<N>

Implementors§