Enum gc_sequence::then::Then[][src]

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

Variants

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

Implementations

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

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

Trait Implementations

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

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

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

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

type Output = R

Auto Trait Implementations

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

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

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

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

impl<'gc, S, F> UnwindSafe for Then<'gc, S, F> where
    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.