pub trait ShlWrapped<Rhs = Self>where
    Rhs: ?Sized,{
    type Output;

    // Required method
    fn shl_wrapped(&self, rhs: &Rhs) -> Self::Output;
}
Expand description

Binary operator for left shifting a value, safely continuing past the number of bits in self.

Required Associated Types§

type Output

Required Methods§

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

Trait Implementations§

source§

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

§

type Case = (Mode, Mode)

source§

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

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

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

§

type Case = (Mode, Mode)

source§

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

Returns the mode of the output.

Implementations on Foreign Types§

§

impl<E, I, M> ShlWrapped<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,

§

fn shl_wrapped( &self, n: &Integer<E, M> ) -> <Integer<E, I> as ShlWrapped<Integer<E, M>>>::Output

Shifts self to the left by n bits, continuing past the boundary.

§

type Output = Integer<E, I>

source§

impl<E, I, M> ShlWrapped<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,

§

type Output = Integer<E, I>

source§

fn shl_wrapped( &self, rhs: &Integer<E, M> ) -> <Integer<E, I> as ShlWrapped<Integer<E, M>>>::Output

Implementors§