What Rust Can Do That Other Languages Can’t

struct X { y: Y } impl X { fn y(&self) -> &Y { &self.y } } This defines an aggregate type containing a field y of type Y directly (no…

Similar

Fun-with-Rust-Traits

Rust's trait system is wonderful. Everyone I know that has used it agrees with this statement. It's a great way to encode shared behaviour between data types, and create flexible APIs. (more…)

Read more »