Trait AsyncFnKindHelper

pub(in ::ops::async_function::internal_implementation_detail) trait AsyncFnKindHelper<GoalKind>

A helper trait that is used to enforce that the ClosureKind of a goal is within the capabilities of a CoroutineClosure, and which allows us to delay the projection of the tupled upvar types until after upvar analysis is complete.

The Self type is expected to be the kind_ty of the coroutine-closure, and thus either ?0 or i8/i16/i32 (see docs for ClosureKind for an explanation of that). The GoalKind is also the same type, but representing the kind of the trait that the closure is being called with.

Associated Types

type Upvars<'closure_env, Inputs, Upvars, BorrowedUpvarsAsFnPtr>;