run_main

Function run_main 

Source
pub fn run_main<F>(f: F)
where F: FnOnce() -> Result<()>,
Expand description

Intended for use in main, calls an inner function and handles errors by printing them.