Uploaded March 2024 | Updated November 2026, 2 hours ago
This lesson is about Structs in Rust.
Structs are a way to create more complex data types in Rust. They are similar to tuples, but with a few differences. You can name the fields of a struct (and you can also define methods for structs). You can also make a struct mutable by using the mut keyword.
You can create a function that returns a struct instance. You can create a new instance of a struct using another instance with the struct update syntax. You can define tuple structs and unit-like structs.
Github link: github.com/FrancescoXX/rust-structs
π¦ All the lessons:
Installation and Hello World: youtu.be/R33h77nrMqc
Variables: youtu.be/6Ag0MZUlvBE
Data Types: youtu.be/NyqJp5M3hRE
Functions: youtu.be/hJLc2Zu405A
Basic Control flow: youtu.be/2w_FTiD74JI
Ownership: youtu.be/9VBLOwmNE1g
References and Borrowing: youtu.be/Q_0yoX07Fhs
Slices: youtu.be/dKymZbFp0ZQ
Structs: youtu.be/PCjuO-Bv5FI
Struct Example: youtu.be/mgK5LezkHl8
Methods: youtu.be/94iSHoKmPmY
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction to Structs in Rust
0:45 Definition and Basics
2:40 Mutable Structs
3:45 Build a Struct with a function
5:22 Struct instance from another instance
7:25 Tuple Structs
8:45 unit-like Structs
This lesson is about Structs in Rust.
Structs are a way to create more complex data types in Rust. They are similar to tuples, but with a few differences. You can name the fields of a struct (and you can also define methods for structs). You can also make a struct mutable by using the mut keyword.
You can create a function that returns a struct instance. You can create a new instance of a struct using another instance with the struct update syntax. You can define tuple structs and unit-like structs.
Github link: github.com/FrancescoXX/rust-structs
π¦ All the lessons:
Installation and Hello World: youtu.be/R33h77nrMqc
Variables: youtu.be/6Ag0MZUlvBE
Data Types: youtu.be/NyqJp5M3hRE
Functions: youtu.be/hJLc2Zu405A
Basic Control flow: youtu.be/2w_FTiD74JI
Ownership: youtu.be/9VBLOwmNE1g
References and Borrowing: youtu.be/Q_0yoX07Fhs
Slices: youtu.be/dKymZbFp0ZQ
Structs: youtu.be/PCjuO-Bv5FI
Struct Example: youtu.be/mgK5LezkHl8
Methods: youtu.be/94iSHoKmPmY
ALL THE LINKS HERE: francescociulla.com
0:00 Introduction to Structs in Rust
0:45 Definition and Basics
2:40 Mutable Structs
3:45 Build a Struct with a function
5:22 Struct instance from another instance
7:25 Tuple Structs
8:45 unit-like Structs










