Trait overflower_support::RemWrap
[−]
[src]
pub trait RemWrap<RHS = Self> { type Output; fn rem_wrap(self, rhs: RHS) -> Self::Output; }
Divide two values and get the remainder, wrapping on overflow
This trait does the same as std::ops::Rem
for most values.
it is specialized for integer types to wrap on over- or underflow.
Associated Types
type Output
The result type of the division remainder
Required Methods
fn rem_wrap(self, rhs: RHS) -> Self::Output
divide two values and get the remainder, wrap on overflow
Implementors
impl<T, R> RemWrap<R> for T where
T: Rem<R>,impl RemWrap<u8> for u8
impl RemWrap<u16> for u16
impl RemWrap<u32> for u32
impl RemWrap<u64> for u64
impl RemWrap<usize> for usize
impl RemWrap<i8> for i8
impl RemWrap<i16> for i16
impl RemWrap<i32> for i32
impl RemWrap<i64> for i64
impl RemWrap<isize> for isize