Macro easy_shortcuts::quit [] [src]

macro_rules! quit {
    ($e:expr) => { ... };
}

quit works like try, except it quits instead of returning. The error message is output using quit_err.

#[macro_use]
extern crate easy_shortcuts;
use std::fs;

fn main() {
    let md = quit!(fs::metadata("."));
}