Module :: procmacrotools

experimental rust-status docs.rs discord

Tools for writing procedural macroses.

Sample

```rust

[ cfg( feature = "use_std" ) ]

{ use procmacrotools::*;

let code = qt!( core::option::Option< i8, i16, i32, i64 > ); let treetype = syn::parse2::< syn::Type >( code ).unwrap(); let got = typeparameters( &treetype, 0..=2 ); got.iter().foreach( | e | println!( "{}", qt!( #e ) ) ); /* print : i8 i16 i32 */ } ```

To add to your project

sh cargo add proc_macro_tools

Try out from the repository

sh git clone https://github.com/Wandalen/wTools cd wTools cd sample/rust/proc_macro_tools_trivial cargo run