Slides / VideoBeginner
Field Init Shorthand
Learn how Rust lets you skip repetitive field assignments when a variable name matches the struct field name.
1 / 6
Learn how Rust lets you skip repetitive field assignments when a variable name matches the struct field name.