Lines Matching refs:Left
40 pub use crate::Either::{Left, Right};
52 Left(L), enumerator
85 $crate::Either::Left($pattern) => $result,
117 $crate::Left(val) => val,
128 $crate::Left(err) => return $crate::Left(::core::convert::From::from(err)),
137 Left(inner) => Left(inner.clone()), in clone()
144 (Left(dest), Left(source)) => dest.clone_from(source), in clone_from()
163 Left(_) => true, in is_left()
194 Left(l) => Some(l), in left()
212 Left(_) => None, in right()
230 Left(ref inner) => Left(inner), in as_ref()
255 Left(ref mut inner) => Left(inner), in as_mut()
267 Left(ref inner) => Left(Pin::new_unchecked(inner)), in as_pin_ref()
283 Left(ref mut inner) => Left(Pin::new_unchecked(inner)), in as_pin_mut()
302 Left(l) => Right(l), in flip()
303 Right(r) => Left(r), in flip()
324 Left(l) => Left(f(l)), in map_left()
346 Left(l) => Left(l), in map_right()
373 Left(l) => f(l), in either()
403 Left(l) => f(ctx, l), in either_with()
424 Left(l) => f(l), in left_and_then()
445 Left(l) => Left(l), in right_and_then()
467 Left(l) => Left(l.into_iter()), in into_iter()
492 Either::Left(l) => l, in left_or()
514 Either::Left(l) => l, in left_or_default()
536 Either::Left(l) => l, in left_or_else()
561 Either::Left(_) => other, in right_or()
583 Either::Left(_) => R::default(), in right_or_default()
605 Either::Left(l) => f(l), in right_or_else()
634 Either::Left(l) => l, in unwrap_left()
666 Either::Left(l) => panic!("called `Either::unwrap_right()` on a `Left` value: {:?}", l), in unwrap_right()
694 Either::Left(l) => l, in expect_left()
724 Either::Left(l) => panic!("{}: {:?}", msg, l), in expect_right()
746 Either::Left(l) => l.into(), in either_into()
767 Left(l) => l.map(Either::Left), in factor_none()
790 Left(l) => l.map(Either::Left), in factor_err()
813 Left(l) => l.map_err(Either::Left), in factor_ok()
834 Left((t, l)) => (t, Left(l)), in factor_first()
855 Left((l, t)) => (Left(l), t), in factor_second()
893 Left(l) => Left(f(l)), in map()
903 Err(e) => Left(e), in from()
914 Left(l) => Err(l), in into()
1313 let mut e = Left(2); in basic()
1315 assert_eq!(e, Left(2)); in basic()
1330 Left(x * 2) in macros()
1335 Right(try_right!(Left("foo bar"))) in macros()
1337 assert_eq!(b(), Left(String::from("foo bar"))); in macros()
1345 let value: Either<String, &str> = Left(String::from("test")); in deref()
1353 3 => Left(0..10), in iter()
1373 Left(io::Cursor::new([])) in seek()
1400 Left(io::stdin()) in read_write()
1411 Left(io::stdout()) in read_write()
1425 Err(Left(error)) in error()