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