Rust Internals
Allow constructing non_exhaustive structs using ..Default::default()
language design
scottmcm
January 19, 2021, 5:29pm
2
You'll probably be interested in this thread, and upcoming RFC, from ekuber:
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Private fields and non-exhaustive structs and base structs
5
1006
February 21, 2023
Pre-RFC: Relaxed #[non_exhaustive] structs
language design
17
3120
November 1, 2020
Supporting ..Default::default() in non-Default structs?
language design
7
308
February 2, 2025
Struct field defaults
28
46330
March 25, 2019
Non_exhaustive for modules
language design
3
762
December 3, 2021