Struct current::CurrentGuard
[−]
[src]
pub struct CurrentGuard<'a, T> where
T: Any, { /* fields omitted */ }
Puts back the previous current pointer.
Methods
impl<'a, T> CurrentGuard<'a, T> where
T: Any,
[src]
T: Any,
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]
T: Any,