3 ms·
> Default initialization only works if you implement "Default". And -- and I think this is important -- even then, you have to explicitly assign the default va
by kelnos 2y ago
> Default initialization only works if you implement "Default".
And -- and I think this is important -- even then, you have to explicitly assign the default value[0]. You won't just somehow magically get a default value.
[0] E.g.:
let foo: SomeType = Default::default();