3 ms·
Sure, just make the fields of the struct private and you can make a public constructor: https://doc.rust-lang.org/rust-by-example/mod/struct_visibility.html ht
by ginsider_oaks 4y ago
Sure, just make the fields of the struct private and you can make a public constructor:
https://doc.rust-lang.org/rust-by-example/mod/struct_visibility.html https://doc.rust-lang.org/rust-by-example/mod/struct_visibil...
- IshKebab 4y agoYeah weird question because you can use the exact same style in C++.