[][src]Trait atomic_traits::fetch::And

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

Bitwise "and" with the current value.

Associated Types

type Type

The underlying type

Loading content...

Required methods

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

Bitwise "and" with the current value.

Performs a bitwise "and" operation on 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 And for AtomicBool[src]

type Type = bool

impl And for AtomicIsize[src]

type Type = isize

impl And for AtomicUsize[src]

type Type = usize

impl And for AtomicI8[src]

type Type = i8

impl And for AtomicI16[src]

type Type = i16

impl And for AtomicI32[src]

type Type = i32

impl And for AtomicI64[src]

type Type = i64

impl And for AtomicU8[src]

type Type = u8

impl And for AtomicU16[src]

type Type = u16

impl And for AtomicU32[src]

type Type = u32

impl And for AtomicU64[src]

type Type = u64

Loading content...

Implementors

Loading content...