Trait snarkvm_circuit::prelude::RemWrapped
[−]pub trait RemWrapped<Rhs = Self> where
Rhs: ?Sized, {
type Output;
fn rem_wrapped(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for dividing two values, wrapping the remainder if an overflow occurs.
Required Associated Types
type Output
Required Methods
fn rem_wrapped(&self, rhs: &Rhs) -> Self::Output
Trait Implementations
impl<E, I> Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static> for Integer<E, I> where
E: Environment,
I: IntegerType,
type Case = (Mode, Mode)
fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static>>::Case
) -> Mode
fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>> + 'static>>::Case
) -> Mode
Returns the mode of the output.
Implementations on Foreign Types
impl<E, I> RemWrapped<Integer<E, I>> for Integer<E, I> where
E: Environment,
I: IntegerType,
impl<E, I> RemWrapped<Integer<E, I>> for Integer<E, I> where
E: Environment,
I: IntegerType,
fn rem_wrapped(
&self,
other: &Integer<E, I>
) -> <Integer<E, I> as RemWrapped<Integer<E, I>>>::Output
fn rem_wrapped(
&self,
other: &Integer<E, I>
) -> <Integer<E, I> as RemWrapped<Integer<E, I>>>::Output
Returns the remainder
of self
divided by other
.