-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Description
itertools/src/either_or_both.rs
Lines 503 to 511 in 5a5731c
impl<A, B> Into<Option<Either<A, B>>> for EitherOrBoth<A, B> { | |
fn into(self) -> Option<Either<A, B>> { | |
match self { | |
EitherOrBoth::Left(l) => Some(Either::Left(l)), | |
EitherOrBoth::Right(r) => Some(Either::Right(r)), | |
_ => None, | |
} | |
} | |
} |
Metadata
Metadata
Assignees
Labels
No labels