this post was submitted on 24 Apr 2025
1 points (100.0% liked)

The Rust Programming Language

40 readers
1 users here now

A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and...

founded 2 years ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/rust by /u/WeeklyRustUser on 2025-04-23 21:09:02+00:00.


Currently the Write trait uses std::io::Error as its error type. This means that you have to handle errors that simply can't happen (e.g. writing to a Vec should never fail). Is there a reason that there is no associated type Error for Write? I'm imagining something like this.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here