Enum gc_sequence::and_then::AndThenWith[][src]

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

Variants

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

Implementations

impl<S, C, F, I> AndThenWith<S, C, F, I>[src]

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

Trait Implementations

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

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

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

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

type Output = Result<R, E>

Auto Trait Implementations

impl<S, C, F, I> RefUnwindSafe for AndThenWith<S, C, F, I> where
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, C, F, I> Send for AndThenWith<S, C, F, I> where
    C: Send,
    F: Send,
    I: Send,
    S: Send

impl<S, C, F, I> Sync for AndThenWith<S, C, F, I> where
    C: Sync,
    F: Sync,
    I: Sync,
    S: Sync

impl<S, C, F, I> Unpin for AndThenWith<S, C, F, I> where
    C: Unpin,
    F: Unpin,
    I: Unpin,
    S: Unpin

impl<S, C, F, I> UnwindSafe for AndThenWith<S, C, F, I> where
    C: UnwindSafe,
    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.