Crates.io | return_if_ok |
lib.rs | return_if_ok |
version | 0.1.0 |
source | src |
created_at | 2015-01-25 15:53:29.333586 |
updated_at | 2015-12-11 23:55:29.371301 |
description | 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`. |
homepage | |
repository | https://github.com/SimonSapin/rust-std-candidates |
max_upload_size | |
id | 879 |
size | 1,039 |