33
you are viewing a single comment's thread
view the rest of the comments
[-] jenesaisquoi@feddit.org 1 points 21 hours ago

You can do type erasure by converting your errors to Box<dyn Error>, then they have the same type and can be in the same enum variant

this post was submitted on 11 Jun 2026
33 points (97.1% liked)

Rust

8060 readers
10 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS