Struct generator::Scope [] [src]

pub struct Scope<A, T> { /* fields omitted */ }

passed in scope tpye 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

Methods

impl<A, T> Scope<A, T>
[src]

[src]

create a new scope object

[src]

yiled something without catch passed in para

[src]

get current generator send para

[src]

yiled and get the send para

[src]

yiled_from the from generator must has the same type as itself