snarkvm_circuit_environment::traits

Trait ShrWrapped

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

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<E, I, M> ShrWrapped<Integer<E, M>> for Integer<E, I>

Source§

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

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

Source§

type Output = Integer<E, I>

Implementors§