Struct mempool::RefGuard [] [src]

pub struct RefGuard<'a, T: Send + 'static> {
    // some fields omitted
}

A guard for putting values back into the pool on drop.

This stores a borrowed reference to the pool that it originated from.

Trait Implementations

impl<'a, T: Debug + Send + 'static> Debug for RefGuard<'a, T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a, T: Send + 'static> Drop for RefGuard<'a, T>
[src]

fn drop(&mut self)

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

impl<'a, T: Send + 'static> Deref for RefGuard<'a, T>
[src]

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value

impl<'a, T: Send + 'static> DerefMut for RefGuard<'a, T>
[src]

fn deref_mut(&mut self) -> &mut T

The method called to mutably dereference a value