Chih-Hung Hsieh | 048fc04 | 2020-04-16 10:44:22 -0700 | [diff] [blame] | 1 | /// A simple binary sum type. |
2 | /// | ||||
3 | /// This is occasionally useful in an ad hoc fashion. | ||||
4 | #[derive(Clone, Debug, Eq, PartialEq)] | ||||
5 | pub enum Either<Left, Right> { | ||||
6 | Left(Left), | ||||
7 | Right(Right), | ||||
8 | } |