Trait overflower_support::ShlAssignPanic [] [src]

pub trait ShlAssignPanic<RHS = usize> {
    fn shl_assign_panic(&mut self, rhs: RHS);
}

Shift left in place, 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.

Required Methods

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

Implementors