| Crates.io | unwrap_return |
| lib.rs | unwrap_return |
| version | 0.1.2 |
| created_at | 2020-07-01 15:46:57.952913+00 |
| updated_at | 2020-07-26 22:37:59.578329+00 |
| description | A set of macros for returns and breaks in the None and Err cases. |
| homepage | https://crates.io/crates/unwrap_return |
| repository | https://github.com/AlexanderHarrison/unwrap_return |
| max_upload_size | |
| id | 260298 |
| size | 16,124 |
A set of macros for returns and breaks in the None and Err cases.
Replaces repetitive code similar to
match expression {
Some(ret) => ret,
None => return
}
with simpler macros such as
unwrap_return!(expression)