#ok #err #try #macro #opposite #repository #“opposite”

return_if_ok

A macro that returns a Result as-is if it’s Ok(_), or unwraps it if it’s Err(_). This is the “opposite” of try!, in the same way that Result::or_else is the opposite of Result::and_then.

1 unstable release

Uses old Rust 2015

0.1.0 Jan 25, 2015

#32 in #err

MIT license

2KB

Archived

This repository is archived to reflect its level of (in)activity and set maintenance expectations.

If some ideas or code in it are useful to you, feel free to use them in other repositories and crates in accordance with the license.

No runtime deps