summaryrefslogtreecommitdiffstats
path: root/vendor/regex-syntax/src/either.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/regex-syntax/src/either.rs')
-rw-r--r--vendor/regex-syntax/src/either.rs8
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 000000000..7ae41e4ce
--- /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),
+}