Rust Programming
Named Fields
Field Types
Struct Naming Conventions
Unnamed Fields
Accessing Tuple Struct Fields
Newtype Pattern
Zero-Sized Types
Marker Types
Struct Instantiation
Field Init Shorthand
Struct Update Syntax
Destructuring Structs
Pattern Matching with Structs
Ownership of Struct Fields
Borrowing Individual Fields
Partial Moves
Lifetime Annotations in Structs
&self Parameter
&mut self Parameter
self Parameter
Constructor Patterns
Static Methods
Previous
3. Understanding Ownership
Go to top
Next
5. Enums and Pattern Matching