1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Or Generic either-or type, similar to Result but more generic # Usage ```rust fn get_foo_or_bar(b: bool) -> Or<Foo, Bar> { if b { Or::Left(Foo {}) } else { Or::Right(Bar {}) } } ```