Trait snarkvm_circuit::ShrWrapped
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§
type Output
Required Methods§
fn shr_wrapped(&self, rhs: &Rhs) -> Self::Output
Trait Implementations§
§impl<E, I, M> Metrics<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> Metrics<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,
§impl<E, I, M> OutputMode<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> OutputMode<dyn ShrWrapped<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 ShrWrapped<Integer<E, M>, Output = Integer<E, I>>>>::Case
) -> Mode
fn output_mode( case: &<Integer<E, I> as OutputMode<dyn ShrWrapped<Integer<E, M>, Output = Integer<E, I>>>>::Case ) -> Mode
Returns the mode of the output.
Implementations on Foreign Types§
§impl<E, I, M> ShrWrapped<Integer<E, M>> for Integer<E, I>where
E: Environment,
I: IntegerType,
M: Magnitude,
impl<E, I, M> ShrWrapped<Integer<E, M>> for Integer<E, I>where E: Environment, I: IntegerType, M: Magnitude,
§fn shr_wrapped(
&self,
n: &Integer<E, M>
) -> <Integer<E, I> as ShrWrapped<Integer<E, M>>>::Output
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.