std::try!
[-] [+]
[src]
macro_rules! try { ($expr:expr) => (match $expr { $crate::result::Result::Ok(val) => val, $crate::result::Result::Err(err) => { return $crate::result::Result::Err($crate::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
.