1 2 3 4 5 6 7 8
/// A simple binary sum type. /// /// This is occasionally useful in an ad hoc fashion. #[derive(Clone, Debug, Eq, PartialEq)] pub enum Either<Left, Right> { Left(Left), Right(Right), }
1 2 3 4 5 6 7 8
/// A simple binary sum type. /// /// This is occasionally useful in an ad hoc fashion. #[derive(Clone, Debug, Eq, PartialEq)] pub enum Either<Left, Right> { Left(Left), Right(Right), }