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