Struct cell_rc::CellWrapper [] [src]

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

Wraps a value with a Cell and provides the get() method if T is CellCloneSafe.

Methods

impl<T> CellWrapper<T>
[src]

Creates a new CellWrapper that wraps the given value.

Consumes the CellWrapper and returns the wrapped value.

Returns a raw pointer to the wrapped value.

Sets the wrapped value to a new one, destroying the old one.

Sets the wrapped value to a new one and returns the old one.

impl<T: CellCloneSafe> CellWrapper<T>
[src]

Returns a clone of the wrapped value

Trait Implementations

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

Performs the conversion.

impl<T: CellCloneSafe> Clone for CellWrapper<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: CellCloneSafe + Debug> Debug for CellWrapper<T>
[src]

Formats the value using the given formatter.

impl<T: CellCloneSafe + Hash> Hash for CellWrapper<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more