Enum gc_sequence::and_then::AndThen[][src]

#[must_use = "sequences do nothing unless stepped"]
pub enum AndThen<S, F, I> {
    First(S, Option<StaticCollect<F>>),
    Second(Option<(I, StaticCollect<F>)>),
}

Variants

First(S, Option<StaticCollect<F>>)
Second(Option<(I, StaticCollect<F>)>)

Implementations

impl<S, F, I> AndThen<S, F, I>[src]

pub fn new(s: S, f: F) -> AndThen<S, F, I>[src]

Trait Implementations

impl<S, F, I> Collect for AndThen<S, F, I> where
    S: Collect,
    Option<StaticCollect<F>>: Collect,
    Option<(I, StaticCollect<F>)>: Collect
[src]

impl<S: Debug, F: Debug, I: Debug> Debug for AndThen<S, F, I>[src]

impl<S, F, I> MustNotImplDrop for AndThen<S, F, I>[src]

impl<'gc, S, F, I, E, R> Sequence<'gc> for AndThen<S, F, I> where
    S: Sequence<'gc, Output = Result<I, E>>,
    I: Collect,
    F: 'static + FnOnce(MutationContext<'gc, '_>, I) -> Result<R, E>, 
[src]

type Output = Result<R, E>

Auto Trait Implementations

impl<S, F, I> RefUnwindSafe for AndThen<S, F, I> where
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, F, I> Send for AndThen<S, F, I> where
    F: Send,
    I: Send,
    S: Send

impl<S, F, I> Sync for AndThen<S, F, I> where
    F: Sync,
    I: Sync,
    S: Sync

impl<S, F, I> Unpin for AndThen<S, F, I> where
    F: Unpin,
    I: Unpin,
    S: Unpin

impl<S, F, I> UnwindSafe for AndThen<S, F, I> where
    F: UnwindSafe,
    I: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.