Trait overflower_support::RemPanic
[−]
[src]
pub trait RemPanic<RHS = Self> { type Output; fn rem_panic(self, rhs: RHS) -> Self::Output; }
Get the remainder of dividing one value by another, panicking on overflow
This does the same as the std::ops::Rem
trait for all non-integer types.
It is specialized for integer types to panic on over- or underflow.
Associated Types
type Output
The output type of the remainder operation
Required Methods
fn rem_panic(self, rhs: RHS) -> Self::Output
divide two values and get the remainder, panicking on overflow
Implementors
impl<T, R> RemPanic<R> for T where
T: Rem<R>,impl RemPanic<u8> for u8
impl RemPanic<u16> for u16
impl RemPanic<u32> for u32
impl RemPanic<u64> for u64
impl RemPanic<usize> for usize
impl RemPanic<i8> for i8
impl RemPanic<i16> for i16
impl RemPanic<i32> for i32
impl RemPanic<i64> for i64
impl RemPanic<isize> for isize