Either with variants
Right is a general purpose
sum type with two cases.
"use_std"Enabled by default. Disable to make the library
"serde"Disabled by default. Enable to
- Untagged serialization/deserialization support for Either<L, R>.
- Untagged serialization/deserialization support for Option<Either<L, R>>.
- Macro for unwrapping the left side of an
Either, which fails early with the opposite side. Can only be used in functions that return
Eitherbecause of the early return of
Rightthat it provides.
- Dual to
try_left!, see its documentation for more information.
- The enum
Rightis a general purpose sum type with two cases.