blob: 7ae41e4ced7460d31b8e19f7b534f0924578dc28 [file] [log] [blame]
Chih-Hung Hsieh048fc042020-04-16 10:44:22 -07001/// A simple binary sum type.
2///
3/// This is occasionally useful in an ad hoc fashion.
4#[derive(Clone, Debug, Eq, PartialEq)]
5pub enum Either<Left, Right> {
6 Left(Left),
7 Right(Right),
8}