Trait overflower_support::ShlPanic [] [src]

pub trait ShlPanic<RHS = usize> {
    type Output;
    fn shl_panic(self, rhs: RHS) -> Self::Output;
}

Shift left, panic if bits are shifted out of the value

This does the same as the std::ops::Shl trait for most types. it is specialized for integer types to panic on over- or underflow.

Associated Types

the result type of our left shift

Required Methods

shift left, panic if bits are shifted out of the value

Implementors