[][src]Macro unwrap_return::unwrap_return

macro_rules! unwrap_return {
    ($e:expr) => { ... };
}

Unwraps in the Some case; returns in the None case.

 unwrap_return!(expression)

is shorthand for

 match expression {
     Some(ret) => ret,
     None => return
 }