Enum bidule::Either
[−]
[src]
pub enum Either<A, B> { Left(A), Right(B), }
Either one or another type.
This type is especially useful for zipping and unzipping streams. If a stream has a type like
Stream<Either<A, B>>
, it means you can unzip it and get two streams: Stream<A>
and
Stream<B>
.
Variants
Left(A)
Right(B)
Trait Implementations
impl<A: Clone, B: Clone> Clone for Either<A, B>
[src]
fn clone(&self) -> Either<A, B>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more