Trait snarkvm_console_types::prelude::SubWrapped
source · pub trait SubWrapped<Rhs = Self>where
Rhs: ?Sized,{
type Output;
// Required method
fn sub_wrapped(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for subtracting two values, wrapping the difference if an underflow occurs.
Required Associated Types§
Required Methods§
fn sub_wrapped(&self, rhs: &Rhs) -> Self::Output
Implementations on Foreign Types§
source§impl<E, I> SubWrapped for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> SubWrapped for Integer<E, I>where E: Environment, I: IntegerType,
source§fn sub_wrapped(
&self,
other: &Integer<E, I>
) -> <Integer<E, I> as SubWrapped>::Output
fn sub_wrapped( &self, other: &Integer<E, I> ) -> <Integer<E, I> as SubWrapped>::Output
Returns the difference
of self
and other
.