
Code Like a Pro in Rust with Brenden Matthews
Rustacean Station
The Benefits of Having an Error Type
So, so if we're talking about errors, if you think about the case, so it was a pretty common thing is to use some library. And most of the time libraries are going to implement their own error types. You probably want to have one struct or anenum for handling all of the different all of theDifferent errors within your code. So doing that type conversion lets you you know encapsulate different types of errors and handle them in same way. Does that make sense?
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.