1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
impl<T0> crate::records::variant::Variant1<T0> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1> crate::records::variant::Variant2<T0, T1> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1, T2> crate::records::variant::Variant3<T0, T1, T2> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1, T2, T3> crate::records::variant::Variant4<T0, T1, T2, T3> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1, T2, T3, T4> crate::records::variant::Variant5<T0, T1, T2, T3, T4> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1, T2, T3, T4, T5> crate::records::variant::Variant6<T0, T1, T2, T3, T4, T5> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}
impl<T0, T1, T2, T3, T4, T5, T6> crate::records::variant::Variant7<T0, T1, T2, T3, T4, T5, T6> {
pub fn variant(&mut self) {
// C++ `Variant()` default-constructs the first alternative.
// In Rust, this is handled by `Default` impl on the enum, which
// constructs `Self::V0(T0::default())`. A manual reassignment is
// unnecessary and duplicates the derive-based behavior.
}
}