Return methods different implementations
stevenliebregt opened this issue · 1 comments
stevenliebregt commented
(pseudocode example)
#[fun_time(message = "loading file @ {the_path}")]
fn load_some_file(the_path: PathBuf) -> String {
let contents_of_file = read_file(the_path);
return contents_of_file
}
let (contents: String, execution_time: Duration) = load_some_file("/tmp/a-path.txt");
feature
- returned, as above
- immediately log using
log
- just println in a specific format
stevenliebregt commented
Done!