Crates.io | err-into |
lib.rs | err-into |
version | 1.0.1 |
source | src |
created_at | 2023-07-22 11:29:59.443085 |
updated_at | 2023-07-22 11:41:14.170148 |
description | Extension traits for core::convert::Into to use with Results and Options |
homepage | |
repository | https://github.com/jalil-salame/err-into |
max_upload_size | |
id | 923146 |
size | 7,701 |
Extension traits for core::convert::Into
that allow Result
and Option
to convert their contained values inline.
Import the traits and you are done:
use err_into::*;
// use err_into::MapInto; // .map(Into::into) -> .map_into()
// use err_into::ErrorInto; // .map_err(Into::into) -> .err_into()
// use err_into::ResultInto; // .map(Into::into).map_err(Into::into) -> .res_into()
Look at the documentation for more information.