[][src]Struct rustc_data_structures::sync::Atomic

pub struct Atomic<T: Copy>(_);

Methods

impl<T: Copy> Atomic<T>[src]

pub fn new(v: T) -> Self[src]

impl<T: Copy + PartialEq> Atomic<T>[src]

pub fn into_inner(self) -> T[src]

pub fn load(&self, _: Ordering) -> T[src]

pub fn store(&self, val: T, _: Ordering)[src]

pub fn swap(&self, val: T, _: Ordering) -> T[src]

pub fn compare_exchange(
    &self,
    current: T,
    new: T,
    _: Ordering,
    _: Ordering
) -> Result<T, T>
[src]

impl<T: Add<Output = T> + Copy> Atomic<T>[src]

pub fn fetch_add(&self, val: T, _: Ordering) -> T[src]

Trait Implementations

impl<T: Debug + Copy> Debug for Atomic<T>[src]

Auto Trait Implementations

impl<T> Send for Atomic<T> where
    T: Send

impl<T> !Sync for Atomic<T>

Blanket Implementations

impl<T> Erased for T[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> SpecializationError for E[src]