News for hackers. Stuff that matters.
Re:Abstraction without overhead: traits in Rust by masklinn on Tuesday May 12, 2015 @02:44AM (#9529924)
> They seem almost completely unrelated to enums in C and other languages.

They're not. Payload-less enums devolve to C enums. Rust's enum simply build the enum+union enumeration pattern into the language, and allow leaving out the "union" part.

There are no comments on this comment yet.