pub enum FreeStep<F, A>{
Done(A),
Suspended(<F as Kind_cdc7cd43dac7585f>::Of<'static, Free<F, A>>),
}Expand description
The result of stepping through a Free computation.
Produced by Free::to_view, this decomposes a Free into either
a final value or a suspended functor layer with all pending
continuations reattached. This provides a unified, single-step
decomposition that both Free::evaluate and Free::resume
delegate to.
§Type Parameters
Variants§
Done(A)
The computation completed with a final value.
Suspended(<F as Kind_cdc7cd43dac7585f>::Of<'static, Free<F, A>>)
The computation is suspended in the functor F.
The inner Free values have all pending continuations reattached.
Auto Trait Implementations§
impl<F, A> Freeze for FreeStep<F, A>
impl<F, A> RefUnwindSafe for FreeStep<F, A>
impl<F, A> Send for FreeStep<F, A>
impl<F, A> Sync for FreeStep<F, A>
impl<F, A> Unpin for FreeStep<F, A>
impl<F, A> UnsafeUnpin for FreeStep<F, A>
impl<F, A> UnwindSafe for FreeStep<F, A>
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<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