composite-error 0.1.0

easily create a enum error composed of other errors
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 4.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 242.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • csos95

Create a simple error enum that is a composite of other errors.

# use composite_error::composite_error;
composite_error! {
    MyError {
        IoError: std::io::Error,
        Other: String,
    }
}

let e = MyError::Other("This is an error".into());
println!("{}", e);