Trait overflower_support::DivPanic
[−]
[src]
pub trait DivPanic<RHS = Self> { type Output; fn div_panic(self, rhs: RHS) -> Self::Output; }
Divide two values, panicking on overflow
This does the same as the std::ops::Div
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 multiplication
Required Methods
Implementors
impl<T, R> DivPanic<R> for T where
T: Div<R>,impl DivPanic<u8> for u8
impl DivPanic<u16> for u16
impl DivPanic<u32> for u32
impl DivPanic<u64> for u64
impl DivPanic<usize> for usize
impl DivPanic<i8> for i8
impl DivPanic<i16> for i16
impl DivPanic<i32> for i32
impl DivPanic<i64> for i64
impl DivPanic<isize> for isize