# 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]

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

### `impl OverflowingSub for i16` [src]

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

### `impl OverflowingSub for i32` [src]

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

### `impl OverflowingSub for i64` [src]

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

### `impl OverflowingSub for i128` [src]

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

### `impl OverflowingSub for isize` [src]

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

### `impl OverflowingSub for u8` [src]

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

### `impl OverflowingSub for u16` [src]

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

### `impl OverflowingSub for u32` [src]

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

### `impl OverflowingSub for u64` [src]

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

### `impl OverflowingSub for u128` [src]

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

### `impl OverflowingSub for usize` [src]

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

Loading content...