trait AsyncFnKindHelper<GoalKind> {
type Upvars<'closure_env, Inputs, Upvars, BorrowedUpvarsAsFnPtr>;
}
Expand description
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.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.