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
type Output
THe output type of the shift operation
Required Methods
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
Implementors
impl<T, R> ShrPanic<R> for T where
T: Shr<R>,impl ShrPanic<u8> for u8
impl ShrPanic<u16> for u8
impl ShrPanic<u32> for u8
impl ShrPanic<u64> for u8
impl ShrPanic<usize> for u8
impl ShrPanic<i8> for u8
impl ShrPanic<i16> for u8
impl ShrPanic<i32> for u8
impl ShrPanic<i64> for u8
impl ShrPanic<isize> for u8
impl ShrPanic<u8> for u16
impl ShrPanic<u16> for u16
impl ShrPanic<u32> for u16
impl ShrPanic<u64> for u16
impl ShrPanic<usize> for u16
impl ShrPanic<i8> for u16
impl ShrPanic<i16> for u16
impl ShrPanic<i32> for u16
impl ShrPanic<i64> for u16
impl ShrPanic<isize> for u16
impl ShrPanic<u8> for u32
impl ShrPanic<u16> for u32
impl ShrPanic<u32> for u32
impl ShrPanic<u64> for u32
impl ShrPanic<usize> for u32
impl ShrPanic<i8> for u32
impl ShrPanic<i16> for u32
impl ShrPanic<i32> for u32
impl ShrPanic<i64> for u32
impl ShrPanic<isize> for u32
impl ShrPanic<u8> for u64
impl ShrPanic<u16> for u64
impl ShrPanic<u32> for u64
impl ShrPanic<u64> for u64
impl ShrPanic<usize> for u64
impl ShrPanic<i8> for u64
impl ShrPanic<i16> for u64
impl ShrPanic<i32> for u64
impl ShrPanic<i64> for u64
impl ShrPanic<isize> for u64
impl ShrPanic<u8> for usize
impl ShrPanic<u16> for usize
impl ShrPanic<u32> for usize
impl ShrPanic<u64> for usize
impl ShrPanic<usize> for usize
impl ShrPanic<i8> for usize
impl ShrPanic<i16> for usize
impl ShrPanic<i32> for usize
impl ShrPanic<i64> for usize
impl ShrPanic<isize> for usize
impl ShrPanic<u8> for i8
impl ShrPanic<u16> for i8
impl ShrPanic<u32> for i8
impl ShrPanic<u64> for i8
impl ShrPanic<usize> for i8
impl ShrPanic<i8> for i8
impl ShrPanic<i16> for i8
impl ShrPanic<i32> for i8
impl ShrPanic<i64> for i8
impl ShrPanic<isize> for i8
impl ShrPanic<u8> for i16
impl ShrPanic<u16> for i16
impl ShrPanic<u32> for i16
impl ShrPanic<u64> for i16
impl ShrPanic<usize> for i16
impl ShrPanic<i8> for i16
impl ShrPanic<i16> for i16
impl ShrPanic<i32> for i16
impl ShrPanic<i64> for i16
impl ShrPanic<isize> for i16
impl ShrPanic<u8> for i32
impl ShrPanic<u16> for i32
impl ShrPanic<u32> for i32
impl ShrPanic<u64> for i32
impl ShrPanic<usize> for i32
impl ShrPanic<i8> for i32
impl ShrPanic<i16> for i32
impl ShrPanic<i32> for i32
impl ShrPanic<i64> for i32
impl ShrPanic<isize> for i32
impl ShrPanic<u8> for i64
impl ShrPanic<u16> for i64
impl ShrPanic<u32> for i64
impl ShrPanic<u64> for i64
impl ShrPanic<usize> for i64
impl ShrPanic<i8> for i64
impl ShrPanic<i16> for i64
impl ShrPanic<i32> for i64
impl ShrPanic<i64> for i64
impl ShrPanic<isize> for i64
impl ShrPanic<u8> for isize
impl ShrPanic<u16> for isize
impl ShrPanic<u32> for isize
impl ShrPanic<u64> for isize
impl ShrPanic<usize> for isize
impl ShrPanic<i8> for isize
impl ShrPanic<i16> for isize
impl ShrPanic<i32> for isize
impl ShrPanic<i64> for isize
impl ShrPanic<isize> for isize