I feel this conflicts with the Default trait. What does this mean:
struct Foo {
a: i32 = 10,
}
impl Default for Foo {
fn default() -> Foo {
Foo { a: 6 }
}
}
Alternatively, what if you derive Default?
I feel this conflicts with the Default trait. What does this mean:
struct Foo {
a: i32 = 10,
}
impl Default for Foo {
fn default() -> Foo {
Foo { a: 6 }
}
}
Alternatively, what if you derive Default?