1 // SPDX-License-Identifier: GPL-2.0
5 /// A sum type that always holds either a value of type `L` or `R`.
6 pub enum Either<L, R> {
7 /// Constructs an instance of [`Either`] containing a value of type `L`.
10 /// Constructs an instance of [`Either`] containing a value of type `R`.