Tag

#Traits

Every article tagged Traits, in one place.

  • 1 article
  • 1 min of reading
  • 23 Jul, 2026 last updated

Showing 1 article

Rust 1 min read

Traits and Generics in Rust

A trait defines behaviour that types can implement, similar to an interface. Generics let functions work with any type that implements the traits they need. Defining and implementing a trait trait Notifier { fn send(&self, to: &str, message: &str) -> Result<()...

23 Jul, 2026 Author 179 119
Read article