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