err-into 1.0.1

Extension traits for core::convert::Into to use with Results and Options
Documentation
  • Coverage
  • 57.14%
    4 out of 7 items documented4 out of 7 items with examples
  • Size
  • Source code size: 7.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 709.78 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • jalil-salame/err-into
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jalil-salame

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.