Trait snarkvm_console_program::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§
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.