Trait (Rust)

A trait defines a set of methods that a type can implement — Rust's version of an interface.