Struct crossbeam::sync::ArcCell
[−]
[src]
pub struct ArcCell<T>(_, _);
A type providing atomic storage and retrieval of an Arc<T>.
Methods
impl<T> ArcCell<T>[src]
impl<T> ArcCell<T>pub fn new(t: Arc<T>) -> ArcCell<T>[src]
pub fn new(t: Arc<T>) -> ArcCell<T>Creates a new ArcCell.
pub fn set(&self, t: Arc<T>) -> Arc<T>[src]
pub fn set(&self, t: Arc<T>) -> Arc<T>Stores a new value in the ArcCell, returning the previous
value.
pub fn get(&self) -> Arc<T>[src]
pub fn get(&self) -> Arc<T>Returns a copy of the value stored by the ArcCell.
Trait Implementations
impl<T: Debug> Debug for ArcCell<T>[src]
impl<T: Debug> Debug for ArcCell<T>fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Drop for ArcCell<T>[src]
impl<T> Drop for ArcCell<T>