Struct movecell::Borrow [] [src]

pub struct Borrow<'a, T: 'a> { /* fields omitted */ }

A wrapper for a value "borrowed" from a MoveCell. When the wrapper is dropped, the value is returned to the cell automatically.

Methods

impl<'a, T> Borrow<'a, T>
[src]

Consume the Borrow guard and return the value.

Trait Implementations

impl<'a, T> Drop for Borrow<'a, T>
[src]

A method called when the value goes out of scope. Read more

impl<'a, T> Deref for Borrow<'a, T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T> DerefMut for Borrow<'a, T>
[src]

The method called to mutably dereference a value

impl<'a, T: Debug> Debug for Borrow<'a, T>
[src]

Formats the value using the given formatter.