Crate either

Source
Expand description

The enum Either with variants Left and Right is a general purpose sum type with two cases.

Crate features:

  • "std" Enabled by default. Disable to make the library #![no_std].

  • "serde" Disabled by default. Enable to #[derive(Serialize, Deserialize)] for Either

Re-exports§

  • pub use crate::Either::Left;
  • pub use crate::Either::Right;

Modules§

Macros§

Structs§

  • Iterator that maps left or right iterators to corresponding Either-wrapped items.

Enums§

  • The enum Either with variants Left and Right is a general purpose sum type with two cases.

Traits§

Functions§