Traits: The "Contract" System
2d ago 路 4 min read 路 ABSTRACT: 馃З Analogy for Frontend Developers A Trait in Rust is exactly like an interface in TypeScript. Think of a Trait as a Contract or a Job Description. It is a way to define shared behavior in an abstract way, forcing different types of data t...
Join discussion