Trait core::finally::Finally[src]

pub trait Finally<T> {
    fn finally(&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(&mut self, dtor: ||) -> T

Executes this object, unconditionally running dtor after this block of code has run.

Implementors