Struct current::CurrentGuard [] [src]

pub struct CurrentGuard<'a, T> where T: Any {
    // some fields omitted
}

Puts back the previous current pointer.

Methods

impl<'a, T> CurrentGuard<'a, T> where T: Any
[src]

fn new(val: &mut T) -> CurrentGuard<T>

Creates a new current guard.

Trait Implementations

impl<'a, T> Drop for CurrentGuard<'a, T> where T: Any
[src]

fn drop(&mut self)

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