RFC 3107 即将被合并 | 允许枚举类型使用 #[derive(Default)] rust #[derive(Default)] enum Option { #[default] None, Some(T), } https://github.com/rust-lang/rfcs/pull/3107 25 views03:34