logoalt Hacker News

Sharlinyesterday at 9:27 PM0 repliesview on HN

Yep, they can have static methods, as it were (in Rust lingo called "associated functions"; "methods" in Rust always take a `self` receiver). Traits can also have associated types and associated constants, which (naturally) also relate to the type, not any particular instance.