You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating instances of structs is easy, all you need to do is assign some values to its fields.
298
-
There is however some shortcuts that can be taken when instantiating structs.
298
+
There are however some shortcuts that can be taken when instantiating structs.
299
299
Have a look in The Book, to find out more: https://doc.rust-lang.org/stable/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax"""
0 commit comments