Expand description
The enum Either.
Crate features:
"use_std"
Enabled by default. Disable to make the library#![no_std]
.
Re-exports§
Macros§
- try_
left - Macro for unwrapping the left side of an
Either
, which fails early with the opposite side. Can only be used in functions that returnEither
because of the early return ofRight
that it provides. - try_
right - Dual to
try_left!
, see its documentation for more information.
Enums§
- Either
Either
represents an alternative holding one value out of either of the two possible values.