| 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 | } |
| 9 |
| 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 | } |
| 9 |