Struct atomic_refcell::AtomicRefCell [] [src]

pub struct AtomicRefCell<T: ?Sized> { /* fields omitted */ }

A threadsafe analogue to RefCell.

Methods

impl<T> AtomicRefCell<T>
[src]

Creates a new AtomicRefCell containing value.

Consumes the AtomicRefCell, returning the wrapped value.

impl<T: ?Sized> AtomicRefCell<T>
[src]

Immutably borrows the wrapped value.

Mutably borrows the wrapped value.

Returns a raw pointer to the underlying data in this cell.

External synchronization is needed to avoid data races when dereferencing the pointer.

Trait Implementations

impl<T: ?Sized + Send + Sync> Send for AtomicRefCell<T>
[src]

impl<T: ?Sized + Send + Sync> Sync for AtomicRefCell<T>
[src]

impl<T: Clone> Clone for AtomicRefCell<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

impl<T: ?Sized + PartialEq> PartialEq for AtomicRefCell<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: ?Sized + Eq> Eq for AtomicRefCell<T>
[src]

impl<T: ?Sized + PartialOrd> PartialOrd for AtomicRefCell<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: ?Sized + Ord> Ord for AtomicRefCell<T>
[src]

This method returns an Ordering between self and other. Read more

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

Performs the conversion.

impl<T: ?Sized + Debug> Debug for AtomicRefCell<T>
[src]

Formats the value using the given formatter.