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
1161
February 21, 2023
Allow FRU syntax on non_exhaustive structs
4
1431
October 29, 2020
Pre-RFC: Relaxed #[non_exhaustive] structs
language design
17
3255
November 1, 2020
Allow a trailing `..` in a struct literal, meaning `.. Default::default()`
ideas (deprecated)
6
3106
March 25, 2019
Pre-RFC: User-provided default field values
language design
125
7868
May 26, 2022