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§
Sourcefn 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§
Source§impl<E> Equal for Address<E>where
E: Environment,
impl<E> Equal for Address<E>where
E: Environment,
Source§impl<E> Equal for Boolean<E>where
E: Environment,
impl<E> Equal for Boolean<E>where
E: Environment,
Source§impl<E> Equal for Field<E>where
E: Environment,
impl<E> Equal for Field<E>where
E: Environment,
Source§impl<E> Equal for Group<E>where
E: Environment,
impl<E> Equal for Group<E>where
E: Environment,
Source§impl<E> Equal for Scalar<E>where
E: Environment,
impl<E> Equal for Scalar<E>where
E: Environment,
Source§impl<E> Equal for StringType<E>where
E: Environment,
impl<E> Equal for StringType<E>where
E: Environment,
Source§fn is_equal(&self, other: &StringType<E>) -> <StringType<E> as Equal>::Output
fn is_equal(&self, other: &StringType<E>) -> <StringType<E> as Equal>::Output
Returns true
if self
and other
are equal.
Source§fn is_not_equal(
&self,
other: &StringType<E>,
) -> <StringType<E> as Equal>::Output
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>
Source§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>
impl<N, Private> Equal for Entry<N, Private>
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>
impl<N, Private> Equal for Owner<N, Private>
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>
impl<N, Private> Equal for Record<N, Private>
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.