Trait RemWrapped

Source
pub trait RemWrapped<Rhs = Self>
where Rhs: ?Sized,
{ type Output; // Required method 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§

Required Methods§

Source

fn rem_wrapped(&self, rhs: &Rhs) -> Self::Output

Trait Implementations§

Source§

impl<E, I> Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Case = (Mode, Mode)

Source§

fn count( case: &<Integer<E, I> as Metrics<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>>>::Case, ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
Source§

impl<E, I> OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Case = (Mode, Mode)

Source§

fn output_mode( case: &<Integer<E, I> as OutputMode<dyn RemWrapped<Integer<E, I>, Output = Integer<E, I>>>>::Case, ) -> Mode

Returns the mode of the output.

Implementations on Foreign Types§

Source§

impl<E, I> RemWrapped for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

fn rem_wrapped( &self, other: &Integer<E, I>, ) -> <Integer<E, I> as RemWrapped>::Output

Returns the remainder of self divided by other.

Source§

type Output = Integer<E, I>

Implementors§

Source§

impl<E, I> RemWrapped for snarkvm_circuit::modules::modules::integers::Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Output = Integer<E, I>