mo8it,
@mo8it@fosstodon.org avatar

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:

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • modclub
  • everett
  • rosin
  • Youngstown
  • slotface
  • ethstaker
  • mdbf
  • kavyap
  • osvaldo12
  • InstantRegret
  • Durango
  • megavids
  • ngwrru68w68
  • tester
  • khanakhh
  • love
  • tacticalgear
  • cubers
  • GTA5RPClips
  • Leos
  • normalnudes
  • provamag3
  • cisconetworking
  • anitta
  • JUstTest
  • All magazines