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]
pub fn new(t: Arc<T>) -> ArcCell<T>
[src]
Creates a new ArcCell
.
pub fn set(&self, t: Arc<T>) -> Arc<T>
[src]
Stores a new value in the ArcCell
, returning the previous
value.
pub fn get(&self) -> Arc<T>
[src]
Returns a copy of the value stored by the ArcCell
.
Trait Implementations
impl<T: Debug> Debug for ArcCell<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more