pub trait ShlWrapped<Rhs = Self>where
    Rhs: ?Sized,
{ type Output; 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§

Required Methods§

source

fn shl_wrapped(&self, rhs: &Rhs) -> Self::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>

Implementors§