Expand description
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§
Macros§
- Evaluate the provided expression for bothEither::LeftandEither::Right.
- Macro for unwrapping the left side of anEither, which fails early with the opposite side. Can only be used in functions that returnEitherbecause of the early return ofRightthat it provides.
- Dual totry_left!, see its documentation for more information.
Structs§
- Iterator that maps left or right iterators to correspondingEither-wrapped items.
Enums§
- The enumEitherwith variantsLeftandRightis a general purpose sum type with two cases.
Traits§
- Provides methods for converting a typeSelfinto either aLeftorRightvariant ofEither<Self, Self>.