Version: 1.1.0
Traits cheat sheet
The standard traits you will see in signatures.
Essentials
Movableallows a value to be transferred.Copyableallows an implicit or explicit duplicate.Equatablerequires__eq__.StringableandWritablefeedprint.KeyElementis whatDictrequires of keys.
Example
fn only_eq[T: Equatable](a: T, b: T) -> Bool:
return a == b
Keep in mind
Conform to the smallest trait that expresses the operation. Extra bounds make callers unhappy.