[][src]Trait atomic_traits::fetch::Max

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

Maximum with the current value.

Associated Types

type Type

The underlying type

Loading content...

Required methods

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

Maximum with the current value.

Finds the maximum of the current value and the argument val, and sets the new value to the result.

Returns the previous value.

Loading content...

Implementations on Foreign Types

impl Max for AtomicIsize[src]

type Type = isize

impl Max for AtomicUsize[src]

type Type = usize

impl Max for AtomicI8[src]

type Type = i8

impl Max for AtomicI16[src]

type Type = i16

impl Max for AtomicI32[src]

type Type = i32

impl Max for AtomicI64[src]

type Type = i64

impl Max for AtomicU8[src]

type Type = u8

impl Max for AtomicU16[src]

type Type = u16

impl Max for AtomicU32[src]

type Type = u32

impl Max for AtomicU64[src]

type Type = u64

Loading content...

Implementors

Loading content...