from_error_scope::trys!
[-]
[+]
[src]
macro_rules! trys { ($tr:expr, $expr:expr) => (match $expr { ::std::result::Result::Ok(val) => val, ::std::result::Result::Err(err) => { return ::std::result::Result::Err($tr.from_error(err)) } }) }
A try!
like
macro that takes an additional type argument for a type that
implements FromErrorScope
. You
may wish to wrap this macro for a specific error scope, to shorten
invocations.