Macro return_if_ok
Source macro_rules! return_if_ok {
($result:expr) => { ... };
}
Expand description
Convenience macro to short-circuit from a parsing function if the given Result is Ok,
or return the contained error if the result is Err.
This is essentially the opposite of the try! macro.