Trait snarkvm_console::prelude::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.
Implementations on Foreign Types§
§impl<E> Equal for Address<E>where
E: Environment,
impl<E> Equal for Address<E>where
E: Environment,
§impl<E> Equal for Boolean<E>where
E: Environment,
impl<E> Equal for Boolean<E>where
E: Environment,
§impl<E> Equal for Field<E>where
E: Environment,
impl<E> Equal for Field<E>where
E: Environment,
§impl<E> Equal for Group<E>where
E: Environment,
impl<E> Equal for Group<E>where
E: Environment,
§impl<E> Equal for Scalar<E>where
E: Environment,
impl<E> Equal for Scalar<E>where
E: Environment,
§impl<E> Equal for StringType<E>where
E: Environment,
impl<E> Equal for StringType<E>where
E: Environment,
§impl<E, I> Equal for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Equal for Integer<E, I>where
E: Environment,
I: IntegerType,
source§impl<N> Equal for ComputeKey<N>where
N: Network,
impl<N> Equal for ComputeKey<N>where
N: Network,
source§fn is_equal(&self, other: &ComputeKey<N>) -> <ComputeKey<N> as Equal>::Output
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
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 Ciphertext<N>where
N: Network,
impl<N> Equal for Ciphertext<N>where
N: Network,
source§fn is_equal(&self, other: &Ciphertext<N>) -> <Ciphertext<N> as Equal>::Output
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
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 Identifier<N>where
N: Network,
impl<N> Equal for Identifier<N>where
N: Network,
source§fn is_equal(&self, other: &Identifier<N>) -> <Identifier<N> as Equal>::Output
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
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, Private> Equal for Entry<N, Private>where
N: Network,
Private: Visibility<Boolean = Boolean<N>>,
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
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
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>>,
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
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
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>>,
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
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
fn is_not_equal( &self, other: &Record<N, Private> ) -> <Record<N, Private> as Equal>::Output
Returns true
if self
and other
are not equal.