Skip to content

Glossary: Rust Basics

Struct

Also written: structure, structs

A type that holds several named values (fields), like a `Product` with a name, price and stock flag.

Where the book teaches it

Related terms

FieldInstanceimpl