[][src]Trait atomic_traits::fetch::Sub

pub trait Sub {
    type Type;
    fn fetch_sub(&self, val: Self::Type, order: Ordering) -> Self::Type;
}

Subtracts from the current value, returning the previous value.

Associated Types

type Type

The underlying type

Loading content...

Required methods

fn fetch_sub(&self, val: Self::Type, order: Ordering) -> Self::Type

Subtracts from the current value, returning the previous value.

This operation wraps around on overflow.

Loading content...

Implementations on Foreign Types

impl Sub for AtomicIsize[src]

type Type = isize

impl Sub for AtomicUsize[src]

type Type = usize

impl Sub for AtomicI8[src]

type Type = i8

impl Sub for AtomicI16[src]

type Type = i16

impl Sub for AtomicI32[src]

type Type = i32

impl Sub for AtomicI64[src]

type Type = i64

impl Sub for AtomicU8[src]

type Type = u8

impl Sub for AtomicU16[src]

type Type = u16

impl Sub for AtomicU32[src]

type Type = u32

impl Sub for AtomicU64[src]

type Type = u64

Loading content...

Implementors

Loading content...