| Crates.io | extra_result |
| lib.rs | extra_result |
| version | 1.0.1 |
| created_at | 2025-06-13 09:33:24.04719+00 |
| updated_at | 2025-06-13 09:33:24.04719+00 |
| description | Add extra methods to `Result` enum. |
| homepage | |
| repository | https://github.com/NattapongSiri/extra-result-rs |
| max_upload_size | |
| id | 1711272 |
| size | 24,299 |
Add extra methods to Result by use a trait ExtraResult.
Current methods added is
map_futmap_or_futmap_or_else_futmap_err_futinspect_futinspect_err_futand_then_futor_else_futunwrap_or_else_futis_ok_and_futis_err_and_futAll these methods is a mirror of a method of regular Result but it accept async function instead.
Simply add use extra_result::*; to a source file that going to use above methods.
Note: The crate only provide single trait name ExtraResult. It is also possible to use extra_result::ExtraResult; instead of using wildcard but it won't make any different.