Skip to content

Glossary: Rust Basics

Generic type

Also written: generics, generic

A type with a slot for another type, such as `Option<u32>` meaning "maybe a `u32`".

Where the book teaches it

Related terms

OptionVec