generatox-proc 0.1.0

Stable generators for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use derive_syn_parse::Parse;
use syn::{Attribute, Block, Signature, Token, Type, Visibility};

#[derive(Debug, Parse)]
pub struct YieldFn {
    #[call(Attribute::parse_outer)]
    pub attrs: Vec<Attribute>,
    pub vis: Visibility,
    pub sig: Signature,
    pub yield_token: Token![yield],
    pub yield_ty: Type,
    pub block: Block,
}

// pub struct YieldClosure;