summaryrefslogtreecommitdiffstats
path: root/vendor/regex-syntax/src/either.rs
blob: 7ae41e4ced7460d31b8e19f7b534f0924578dc28 (plain)
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),
}