[−][src]Module show_notes::e031::unions
Demonstrate unions! Combines an enum
and a union
into a struct
that
acts mostly like a regular Rust enum
.
Structs
Either | Uses an |
Wrapped | A simple type designed to demo unions. See the body of |
Enums
Tag | For tagging the type in |
Functions
demo_union | Builds an instance of |
Unions
EitherValue | A union, to be used as the inner value for |