pub enum AndThen<G1, F, G2> {
Before {
g: G1,
f: Option<F>,
},
After {
g: G2,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl<G1, F, G2> Freeze for AndThen<G1, F, G2>
impl<G1, F, G2> RefUnwindSafe for AndThen<G1, F, G2>
impl<G1, F, G2> Send for AndThen<G1, F, G2>
impl<G1, F, G2> Sync for AndThen<G1, F, G2>
impl<G1, F, G2> Unpin for AndThen<G1, F, G2>
impl<G1, F, G2> UnsafeUnpin for AndThen<G1, F, G2>
impl<G1, F, G2> UnwindSafe for AndThen<G1, F, G2>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<G, R> GeneratorExt<R> for Gwhere
G: Generator<R>,
impl<G, R> GeneratorExt<R> for Gwhere
G: Generator<R>,
fn receiving<F, U>(self, f: F) -> Receiving<Self, F>
fn compose<G: Generator<Self::Yield>>(self, then: G) -> Compose<Self, G>where
Self: Sized,
fn map_complete<U, F>(self, f: F) -> MapComplete<Self, F>
fn map_yield<U, F>(self, f: F) -> MapYield<Self, F>
fn and_then<G, F>(self, f: F) -> AndThen<Self, F, G>
fn flatten(self) -> Flatten<Self, Self::Yield>
Source§impl<G> GeneratorIterator for G
impl<G> GeneratorIterator for G
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more