[][src]Macro next_gen::stack_pinned

macro_rules! stack_pinned {
    (
        $var:ident
    ) => { ... };
    (
        mut $var:ident
    ) => { ... };
}

Pins a local to the stack.

This is used by mk_gen! to get a pollable generator without going through a heap allocation (as Box::pin would do).