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

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

Performs substraction with a flag for overflow.

Required methods

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...

Implementors

impl OverflowingSub for i8[src]

impl OverflowingSub for i16[src]

impl OverflowingSub for i32[src]

impl OverflowingSub for i64[src]

impl OverflowingSub for i128[src]

impl OverflowingSub for isize[src]

impl OverflowingSub for u8[src]

impl OverflowingSub for u16[src]

impl OverflowingSub for u32[src]

impl OverflowingSub for u64[src]

impl OverflowingSub for u128[src]

impl OverflowingSub for usize[src]

Loading content...