Skip to content

alilleybrinker/replace_err

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Adds Result::replace_err in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Languages