Trait snarkvm_circuit_types::Equal
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_not_equal(&self, other: &Rhs) -> Self::Output
fn is_not_equal(&self, other: &Rhs) -> Self::Output
Returns true
if self
and other
are not equal.
Trait Implementations§
source§impl<E, I> Metrics<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Metrics<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>where E: Environment, I: IntegerType,
source§impl<E> OutputMode<dyn Equal<Field<E>, Output = Boolean<E>>> for Field<E>where
E: Environment,
impl<E> OutputMode<dyn Equal<Field<E>, Output = Boolean<E>>> for Field<E>where E: Environment,
source§impl<E, I> OutputMode<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn Equal<Integer<E, I>, Output = Boolean<E>>> for Integer<E, I>where E: Environment, I: IntegerType,
Implementations on Foreign Types§
§impl<E, I> Equal<Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
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
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
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>
source§impl<E, I> Equal<Integer<E, I>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Equal<Integer<E, I>> for Integer<E, I>where E: Environment, I: IntegerType,
source§fn is_equal(
&self,
other: &Integer<E, I>
) -> <Integer<E, I> as Equal<Integer<E, I>>>::Output
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.
source§fn is_not_equal(
&self,
other: &Integer<E, I>
) -> <Integer<E, I> as Equal<Integer<E, I>>>::Output
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.
This method constructs a boolean that indicates if
self
and other
are not equal to each other.
type Output = Boolean<E>
§impl<E> Equal<StringType<E>> for StringType<E>where
E: Environment,
impl<E> Equal<StringType<E>> for StringType<E>where E: Environment,
§fn is_equal(
&self,
other: &StringType<E>
) -> <StringType<E> as Equal<StringType<E>>>::Output
fn is_equal( &self, other: &StringType<E> ) -> <StringType<E> as Equal<StringType<E>>>::Output
Returns true
if self
and other
are equal.
§fn is_not_equal(
&self,
other: &StringType<E>
) -> <StringType<E> as Equal<StringType<E>>>::Output
fn is_not_equal( &self, other: &StringType<E> ) -> <StringType<E> as Equal<StringType<E>>>::Output
Returns true
if self
and other
are not equal.