[][src]Function show_notes::e031::unions::demo_union

pub fn demo_union()

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.