[−][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.
Trait Implementations
impl<T: Clone, U: Clone> Clone for Either<T, U>
[src]
impl<T, U, V, W, I1, I2> HigherIntoIterator<Item<V>> 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]
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, U1, U2> HigherIntoIterator<Item<(U1, U2)>> for T where
T: HigherIntoIterator<(Item<U1>, Item<U2>)>,
[src]
T: HigherIntoIterator<(Item<U1>, Item<U2>)>,
type Item = <T as HigherIntoIterator<(Item<U1>, Item<U2>)>>::Item
The item type generated by the iterator.
type IntoIter = <T as HigherIntoIterator<(Item<U1>, Item<U2>)>>::IntoIter
The iterator type.
fn hinto_iter(
Self,
Item<(U1, U2)>
) -> <T as HigherIntoIterator<Item<(U1, U2)>>>::IntoIter
[src]
Self,
Item<(U1, U2)>
) -> <T as HigherIntoIterator<Item<(U1, U2)>>>::IntoIter
impl<T, U, V, W, I> HigherIntoIterator<Path<U, V>> for T where
Comp<T, U>: HigherIntoIterator<Item<V>>,
<Comp<T, U> as HigherIntoIterator<Item<V>>>::Item == W,
<Comp<T, U> as HigherIntoIterator<Item<V>>>::IntoIter == I,
[src]
Comp<T, U>: HigherIntoIterator<Item<V>>,
<Comp<T, U> as HigherIntoIterator<Item<V>>>::Item == W,
<Comp<T, U> as HigherIntoIterator<Item<V>>>::IntoIter == I,
type Item = W
The item type generated by the iterator.
type IntoIter = I
The iterator type.
fn hinto_iter(
Self,
Path<U, V>
) -> <T as HigherIntoIterator<Path<U, V>>>::IntoIter
[src]
Self,
Path<U, V>
) -> <T as HigherIntoIterator<Path<U, V>>>::IntoIter
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,