Struct crossbeam::atomic::ArcCell

source ·
pub struct ArcCell<T>(_, _);
Expand description

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

Implementations§

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§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.