replace_err 0.1.0

Adds a `replace_err` method to `Result` which throws away the current error and replaces it.
Documentation
1
2
3
4
5
6
7
8
9
# `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.