diff options
Diffstat (limited to 'vendor/regex-syntax/src/either.rs')
-rw-r--r-- | vendor/regex-syntax/src/either.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/regex-syntax/src/either.rs b/vendor/regex-syntax/src/either.rs new file mode 100644 index 0000000..7ae41e4 --- /dev/null +++ b/vendor/regex-syntax/src/either.rs @@ -0,0 +1,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), +} |