Trait ndarray_rand::rand_distr::num_traits::ops::overflowing::OverflowingSub[][src]

pub trait OverflowingSub: Sub<Self, Output = Self> {
    pub fn overflowing_sub(&self, v: &Self) -> (Self, bool);
}

Performs substraction with a flag for overflow.

Required methods

pub fn overflowing_sub(&self, v: &Self) -> (Self, bool)[src]

Returns a tuple of the difference along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.

Loading content...

Implementations on Foreign Types

impl OverflowingSub for u64[src]

impl OverflowingSub for i64[src]

impl OverflowingSub for i128[src]

impl OverflowingSub for i32[src]

impl OverflowingSub for u16[src]

impl OverflowingSub for u128[src]

impl OverflowingSub for usize[src]

impl OverflowingSub for i8[src]

impl OverflowingSub for u8[src]

impl OverflowingSub for u32[src]

impl OverflowingSub for isize[src]

impl OverflowingSub for i16[src]

Loading content...

Implementors

Loading content...