replace_err

Crates.ioreplace_err
lib.rsreplace_err
version1.0.0
sourcesrc
created_at2022-04-20 19:05:57.297541
updated_at2024-01-02 20:34:48.23987
descriptionAdds a `replace_err` method to `Result` which throws away the current error and replaces it.
homepage
repositoryhttps://github.com/alilleybrinker/replace_err
max_upload_size
id571108
size16,187
Andrew Lilley Brinker (alilleybrinker)

documentation

README

replace_err

Adds a method, replace_err to Result which throws away the current error and replaces it with a new error type, equivalent to result.map_err(|_| new_error_value).

License

This code is dual-licensed MIT and Apache 2.0. Take your pick.

Commit count: 4

cargo fmt