Login
From:
shift.click
(Uncensored)
subscribe
I wish `#[non_exhaustive]` worked with struct update syntax
https://shift.click/blog/non-exhaustive-fru-sad/
links
backlinks
Tagged with:
rants
code
rust
quick-thoughts
Roast topics
Find topics
Find it!
It’s pretty annoying that in Rust, #[non_exhaustive] structs don’t support “struct update” / “functional record update” syntax (the syntax that powers Stuff { a: b, c: d, ..blah }).