Struct arc_cell::WeakCell [] [src]

pub struct WeakCell<T> { /* fields omitted */ }

A Cell for containing a weak reference

Methods

impl<T> WeakCell<T>
[src]

Constructs the Cell with a value already inside

Construct the Cell with an empty Weak pointer. Upgrading this value will always return None.

Get the Weak pointer as it is at this moment

Try to upgrade the Weak pointer as it is now into a Strong pointer

Set a Weak pointer you currently have as the pointer in this cell

Downgrade a Strong pointer and store it in the cell

Resets the stored value to be empty

Trait Implementations

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

Formats the value using the given formatter.