The most important standard library traits in Rust are Debug, PartialEq, Clone, Copy, PartialOrd, and Ord, which enable printing, comparison, and duplication of types.
#[derive(Debug, PartialEq, Clone, Copy, PartialOrd, Ord)]
struct ShirtColor {
red: bool,
}
These traits are automatically implemented using the #[derive(...)] attribute, allowing you to use operators like ==, <, and println! without manual implementation.