Trait overflower_support::ShrPanic [] [src]

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

Shift right, panic if the number of bits shifted are higher than the width of the type

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

Associated Types

THe output type of the shift operation

Required Methods

shift right, panic if the number of bits shifted are higher than the width of the type

Implementors