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§

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>

Implementors§

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

§

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

§

type Output = Boolean<E>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>

source§

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

§

type Output = Boolean<N>