Skip to content

Glossary: Rust Basics

Trait

Also written: traits

A named ability a type can have, such as `Debug` for printing with `{:?}` or `Copy` for being copied.

Where the book teaches it

Related terms

Copy#[derive(Debug)]