Macro nes::result [] [src]

macro_rules! result {
    [ $error:ty ] => { ... };
    [ $ok:ty , $error:ty ] => { ... };
}

This macro avoids overabundance of <<>> and makes a syntax more beautiful.

# Example

fn process() -> result![CommonError] { ... }

fn read_file(file_name:String) -> result![Vec<String>,ReadFileError] { ... }