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

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

Binary operator for right shifting a value, checking that the rhs is less than the number of bits in self.

Required Associated Types§

type Output

Required Methods§

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

Trait Implementations§

§

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

§

type Case = (Mode, Mode)

§

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

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

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

§

type Case = (Mode, Mode)

§

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

Returns the mode of the output.

Implementations on Foreign Types§

§

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

§

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

Shifts self to the right by n bits.

§

type Output = Integer<E, I>

§

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

§

type Output = Integer<E, I>

§

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

Implementors§