☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
regex-syntax
/
src
/
either.rs
☽
☼
debian/rust-vendor/regex-syntax/src/either.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
/// A simple binary sum type.
2
///
3
/// This is occasionally useful in an ad hoc fashion.
4
#[derive(Clone, Debug, Eq, PartialEq)]
5
pub enum Either<Left, Right> {
6
Left(Left),
7
Right(Right),
8
}