pub struct Scope<'a, A, T> { /* private fields */ }
Expand description

passed in scope type it not use the context to pass data, but keep it’s own data ref this struct provide both compile type info and runtime data

Implementations

yield something without catch passed in para

get current generator send para

yield and get the send para

yield_from the from generator must has the same type as itself

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.