mo8it, I think I am now addicted to writing and implementing traits to be able to chain function calls :ablobcatheartsqueeze:
For example, implementing your own trait on Result makes error handling much easier because you can just chain a function that maps the error to your error type with possible arguments!
You can just use map_err, but chaining is slimmer and more flexible.
Rust is the perfect language for chaining! Especially with .await and the ? operator :ferrisdance:
Add comment