[−][src]Macro unwrap_return::ok_unwrap_break
Unwraps in the Ok
case; breaks in the Result
case.
Drops everything contained within Err.
ok_unwrap_break!(expression)
is shorthand for
match expression { Ok(ret) => ret, Err(_) => break }