- Hi, welcome to Lesson 10.
In this lesson, we're going to see
how to define structures in Rust.
Structures or structs for short are similar to classes
in object-oriented languages,
but with some interesting differences.
We'll begin by seeing how to define a simple structure
that just contains data.
Then we'll see how to create an instance
and access its fields.
After that, we'll see how to pass structure objects
into a function by value or by reference
and how to return a structure from a function
again by value or by reference.