set-error 1.0.1

A very simple trait that overwrites errors.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 5.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • eopb

set-error

A very simple trait that overwrites errors with Strings for Results and Options.

pipeline status License Latest version Latest Docs downloads-badge

When used with the ? operator it makes a nice pattern. Documentation

File::open("config.yaml")
    .set_error("Failed to open config file.")?
    .read_to_string(&mut contents)
    .set_error("Failed to read file content.")?;

Help

If you run into any issues or need help with using read_input in your project please email incoming+efunb-set-error-12103568-issue-@incoming.gitlab.com

Warning

If you are viewing this from GitHub then this is a read only copy. Please contribute to the GitLab copy here.