Struct crossbeam::atomic::ArcCell[][src]

pub struct ArcCell<T>(_, _);

A type providing atomic storage and retrieval of an Arc<T>.

Methods

impl<T> ArcCell<T>
[src]

Creates a new ArcCell.

Stores a new value in the ArcCell, returning the previous value.

Returns a copy of the value stored by the ArcCell.

Trait Implementations

impl<T: Debug> Debug for ArcCell<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Drop for ArcCell<T>
[src]

Executes the destructor for this type. Read more

impl<T: Default> Default for ArcCell<T>
[src]

Returns the "default value" for a type. Read more

impl<T> From<Arc<T>> for ArcCell<T>
[src]

Performs the conversion.

impl<T> From<T> for ArcCell<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for ArcCell<T> where
    T: Send + Sync

impl<T> Sync for ArcCell<T> where
    T: Send + Sync