err-into

Crates.ioerr-into
lib.rserr-into
version1.0.1
sourcesrc
created_at2023-07-22 11:29:59.443085
updated_at2023-07-22 11:41:14.170148
descriptionExtension traits for core::convert::Into to use with Results and Options
homepage
repositoryhttps://github.com/jalil-salame/err-into
max_upload_size
id923146
size7,701
Jalil David Salamé Messina (jalil-salame)

documentation

README

Error Into

Extension traits for core::convert::Into that allow Result and Option to convert their contained values inline.

Usage

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.

Commit count: 3

cargo fmt