Tour di Rust Indice dei Contenuti

[Non tradotto] Structures

A struct is a collection of fields.

A field is simply a data value associated with a data structure. Its value can be of a primitive type or a data structure.

Its definition is like a blueprint for a compiler on how to layout the fields in memory nearby each other.