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§

Required Methods§

source

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

Returns true if self and other are equal.

source

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 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, 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>

Implementors§