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§

type Output

Required Methods§

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,

§

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,

§

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§

§

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

Returns the remainder of self divided by other.

§

type Output = Integer<E, I>

source§

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

§

type Output = Integer<E, I>

source§

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

Implementors§