Jump to content

Traits: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 November 2025

  • curprev 19:2119:21, 23 November 2025 PC talk contribs 10,288 bytes +10,288 Created page with "In our previous writeup, we looked at Lifetimes and their importance in Rust. If you missed it, you can check it out below. Lifetimes Yesterday we looked at Slices and their nitty-gritties, I’d suggest you check it out below. medium.com In Rust, a trait is a way to define a set of methods that types can implement. Think of it as a blueprint for behavior. If you’ve worked in other languages, traits are somewhat akin to interfaces in Java or protocols in Swift, but..."