Trait snarkvm_console_network::ShlChecked
source · pub trait ShlChecked<Rhs = Self>where
Rhs: ?Sized,{
type Output;
// Required method
fn shl_checked(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for left shifting a value, checking that the rhs is less than the number of bits in self.
Required Associated Types§
Required Methods§
fn shl_checked(&self, rhs: &Rhs) -> Self::Output
Implementations on Foreign Types§
§impl<E, I, M> ShlChecked<Integer<E, M>> for Integer<E, I>
impl<E, I, M> ShlChecked<Integer<E, M>> for Integer<E, I>
§fn shl_checked(
&self,
n: &Integer<E, M>
) -> <Integer<E, I> as ShlChecked<Integer<E, M>>>::Output
fn shl_checked( &self, n: &Integer<E, M> ) -> <Integer<E, I> as ShlChecked<Integer<E, M>>>::Output
Shifts self
to the left by n
bits.