Bennett Hardwick
Wiki » Rust

Traits

Note: this section is still under development, who knows if it’ll exist in the future

#todo

Traits are essentially Rust’s version of interfaces.

trait Hello {
  fn say_hello(&self) {
  }
}

Trait objects

Linked references: