Expand description
§Rust custom error
This crate contains a custom_error! macro that should make it easier to define custom errors
without having to write a lot of boilerplate code.
§Crate features
§nostd
This crate supports no-std: it can be built without the rust standard library.
To use the no-std version, disable the std feature in this crate in your Cargo.toml :
[dependencies]
custom_error = { version = "1", default-features = false } # nostd compatible§unstable
There is also an unstable feature
that implements the nostd error trait on AllocError and TryReserveError in no-std.
Macros§
- custom_
error - Constructs a custom error type.
Traits§
- Error
- Use the Error trait from
stdby default.Erroris a trait representing the basic expectations for error values, i.e., values of typeEinResult<T, E>.