[−][src]Enum path_iter::Either
Used to lift iterator generators into a sum type.
This is used in partial application,
e.g. And::papp(true)
returns Either::Left(Idb)
.
Variants
The left iterator generator.
The right iterator generator.
Implementations
impl<T> Either<T, Empty>
[src]
impl<T> Either<Empty, T>
[src]
pub fn inner_right(self) -> T
[src]
Gets the inner right value.
Trait Implementations
impl<T: Clone, U: Clone> Clone for Either<T, U>
[src]
impl<T1, T2, U1, U2, V1, V2, I1, I2> HigherIntoIterator<Either<(U1, U2), Empty>> for (T1, T2) where
T1: HigherIntoIterator<Item<U1>, Item = V1, IntoIter = I1>,
T2: Clone + HigherIntoIterator<Item<U2>, Item = V2, IntoIter = I2>,
I1: Iterator<Item = V1>,
U2: Clone,
[src]
T1: HigherIntoIterator<Item<U1>, Item = V1, IntoIter = I1>,
T2: Clone + HigherIntoIterator<Item<U2>, Item = V2, IntoIter = I2>,
I1: Iterator<Item = V1>,
U2: Clone,
type Item = (V1, V2)
The item type generated by the iterator.
type IntoIter = ProductIter<I1, I2, PathEnd<T2, U2>, V1>
The iterator type.
fn hinto_iter(self, arg: Item<(U1, U2)>) -> Self::IntoIter
[src]
impl<T> HigherIntoIterator<Either<Range<T>, Empty>> for Neg where
T: Sub<Output = T> + From<u8>,
[src]
T: Sub<Output = T> + From<u8>,
type Item = T
The item type generated by the iterator.
type IntoIter = Range<T>
The iterator type.
fn hinto_iter(self, arg: Item<Range<T>>) -> Self::IntoIter
[src]
impl<T> HigherIntoIterator<Either<Range<T>, Empty>> for Id
[src]
type Item = T
The item type generated by the iterator.
type IntoIter = Range<T>
The iterator type.
fn hinto_iter(self, arg: Item<Range<T>>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<Range<i64>, Empty>> for Add
[src]
type Item = (i64, i64)
The item type generated by the iterator.
type IntoIter = AddRangeIter
The iterator type.
fn hinto_iter(self, arg: Item<Range<i64>>) -> Self::IntoIter
[src]
impl<T, U, V, I> HigherIntoIterator<Either<U, Empty>> for Item<T> where
Item<T>: IntoIterator<Item = V, IntoIter = I>,
I: Iterator<Item = V>,
[src]
Item<T>: IntoIterator<Item = V, IntoIter = I>,
I: Iterator<Item = V>,
type Item = V
The item type generated by the iterator.
type IntoIter = I
The iterator type.
fn hinto_iter(self, _: Item<U>) -> Self::IntoIter
[src]
impl<T, U, V, W, I1, I2> HigherIntoIterator<Either<V, Empty>> for Either<T, U> where
T: HigherIntoIterator<Item<V>, Item = W, IntoIter = I1>,
U: HigherIntoIterator<Item<V>, Item = W, IntoIter = I2>,
I1: Iterator<Item = W>,
I2: Iterator<Item = W>,
[src]
T: HigherIntoIterator<Item<V>, Item = W, IntoIter = I1>,
U: HigherIntoIterator<Item<V>, Item = W, IntoIter = I2>,
I1: Iterator<Item = W>,
I2: Iterator<Item = W>,
type Item = W
The item type generated by the iterator.
type IntoIter = EitherIter<I1, I2>
The iterator type.
fn hinto_iter(self, arg: Item<V>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for False1
[src]
type Item = bool
The item type generated by the iterator.
type IntoIter = IntoIter<bool>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for True1
[src]
type Item = bool
The item type generated by the iterator.
type IntoIter = IntoIter<bool>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Idb
[src]
type Item = bool
The item type generated by the iterator.
type IntoIter = <Option<bool> as IntoIterator>::IntoIter
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Not
[src]
type Item = bool
The item type generated by the iterator.
type IntoIter = <Option<bool> as IntoIterator>::IntoIter
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for And
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Or
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Eqb
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Xor
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Fstb
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<bool, Empty>> for Sndb
[src]
type Item = (bool, bool)
The item type generated by the iterator.
type IntoIter = IntoIter<(bool, bool)>
The iterator type.
fn hinto_iter(self, arg: Item<bool>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<i64, Empty>> for Neg
[src]
type Item = i64
The item type generated by the iterator.
type IntoIter = Range<i64>
The iterator type.
fn hinto_iter(self, arg: Item<i64>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<i64, Empty>> for Id
[src]
type Item = i64
The item type generated by the iterator.
type IntoIter = Range<i64>
The iterator type.
fn hinto_iter(self, arg: Item<i64>) -> Self::IntoIter
[src]
impl HigherIntoIterator<Either<i64, Empty>> for Add
[src]
Auto Trait Implementations
impl<T, U> RefUnwindSafe for Either<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Either<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for Either<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<T, U> Unpin for Either<T, U> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
impl<T, U> UnwindSafe for Either<T, U> where
T: UnwindSafe,
U: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,