Trait MulWrapped

Source
pub trait MulWrapped<Rhs = Self>
where Rhs: ?Sized,
{ type Output; // Required method fn mul_wrapped(&self, rhs: &Rhs) -> Self::Output; }
Expand description

Binary operator for multiplying two values, wrapping the product if an overflow occurs.

Required Associated Types§

Required Methods§

Source

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

Trait Implementations§

Source§

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

Source§

type Case = (Mode, Mode, bool, bool)

Source§

fn count( case: &<Integer<E, I> as Metrics<dyn MulWrapped<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 MulWrapped<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Case = (Mode, Mode, bool, bool)

Source§

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

Returns the mode of the output.

Implementations on Foreign Types§

Source§

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

Source§

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

Returns the product of self and other.

Source§

type Output = Integer<E, I>

Implementors§

Source§

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

Source§

type Output = Integer<E, I>