std::try!
[-]
[+]
[src]
macro_rules! try { ($expr:expr) => ({ match $expr { Ok(val) => val, Err(err) => return Err(::std::error::FromError::from_error(err)) } }) }
Helper macro for unwrapping Result
values while returning early with an
error if the value of the expression is Err
. For more information, see
std::io
.