stdweb-internal-macros 0.2.9

Internal procedural macros for the `stdweb` crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use syn;
use proc_macro2::Span;

#[derive(Copy, Clone)]
pub enum Target {
    Emscripten,
    NativeWebAssembly,
    WasmBindgen
}

pub fn dummy_idents( count: usize ) -> impl Iterator< Item = syn::Ident > {
    (0..count).into_iter().map( |nth| {
        syn::Ident::new( &format!( "a{}", nth ), Span::call_site() )
    })
}