pub const fn neither<L, R>() -> MaybeEither<L, R>Expand description
Always returns None, to represent when neither the left nor right value are
present.
Using None (or Option::<Either::<L, R>>::None for the long form) is fine.
ยงExample
let maybe_either: MaybeEither<u32, i32> = Either::from_options(None, None);
assert_eq!(maybe_either, neither());