Trait std::finally::FinallyDeprecated
[-] [+]
[src]
pub trait Finally<T> {
fn finally<F>(&mut self, dtor: F) -> T where F: FnMut(), <F as FnMut()>::Output == ();
}
A trait for executing a destructor unconditionally after a block of code, regardless of whether the blocked fails.
Required Methods
fn finally<F>(&mut self, dtor: F) -> T where F: FnMut(), <F as FnMut()>::Output == ()
Executes this object, unconditionally running dtor
after this block of
code has run.