Function show_notes::e031::unions::demo_union
source · pub fn demo_union()
Expand description
Builds an instance of Either
, a manually-managed “tagged union” type.
If you read the body, you’ll notice that we’re not helped in any way
by Rust like we are with normal enum
types.