[−][src]Crate either
The enum Either with variants Left and Right is a general purpose
sum type with two cases.
Crate features:
-
"use_std"Enabled by default. Disable to make the library#![no_std]. -
"serde"Disabled by default. Enable to#[derive(Serialize, Deserialize)]forEither
Re-exports
pub use Either::Left; |
pub use Either::Right; |
Modules
| serde_untagged | Untagged serialization/deserialization support for Either<L, R>. |
| serde_untagged_optional | Untagged serialization/deserialization support for Option<Either<L, R>>. |
Macros
| try_left | Macro for unwrapping the left side of an |
| try_right | Dual to |
Enums
| Either | The enum |