Enum gc_sequence::then::ThenWith[][src]

#[must_use = "sequences do nothing unless stepped"]
pub enum ThenWith<'gc, S, C, F> where
    S: Sequence<'gc>, 
{ First(S, Option<(C, StaticCollect<F>)>), Second(Option<(C, S::Output, StaticCollect<F>)>), }

Variants

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

Implementations

impl<'gc, S, C, F> ThenWith<'gc, S, C, F> where
    S: Sequence<'gc>, 
[src]

pub fn new(s: S, c: C, f: F) -> ThenWith<'gc, S, C, F>[src]

Trait Implementations

impl<'gc, S, C, F> Collect for ThenWith<'gc, S, C, F> where
    S: Sequence<'gc>,
    S: Collect,
    Option<(C, StaticCollect<F>)>: Collect,
    Option<(C, S::Output, StaticCollect<F>)>: Collect
[src]

impl<'gc, S: Debug, C: Debug, F: Debug> Debug for ThenWith<'gc, S, C, F> where
    S: Sequence<'gc>,
    S::Output: Debug
[src]

impl<'gc, S, C, F> MustNotImplDrop for ThenWith<'gc, S, C, F> where
    S: Sequence<'gc>, 
[src]

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

type Output = R

Auto Trait Implementations

impl<'gc, S, C, F> RefUnwindSafe for ThenWith<'gc, S, C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    S: RefUnwindSafe,
    <S as Sequence<'gc>>::Output: RefUnwindSafe

impl<'gc, S, C, F> Send for ThenWith<'gc, S, C, F> where
    C: Send,
    F: Send,
    S: Send,
    <S as Sequence<'gc>>::Output: Send

impl<'gc, S, C, F> Sync for ThenWith<'gc, S, C, F> where
    C: Sync,
    F: Sync,
    S: Sync,
    <S as Sequence<'gc>>::Output: Sync

impl<'gc, S, C, F> Unpin for ThenWith<'gc, S, C, F> where
    C: Unpin,
    F: Unpin,
    S: Unpin,
    <S as Sequence<'gc>>::Output: Unpin

impl<'gc, S, C, F> UnwindSafe for ThenWith<'gc, S, C, F> where
    C: UnwindSafe,
    F: UnwindSafe,
    S: UnwindSafe,
    <S as Sequence<'gc>>::Output: 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.