This Feature Just Blew My Mind

346 points library-in-a-library 79 comments

I just learned that tuple structs are considered functions:
`struct X(u32)` is a `fn(u32) -> X`.

I understood structs to be purely types with associated items and seeing that this is a function that can be passed around is mind blowing!