module::macro_tools

Tools for writing procedural macroses.

Sample

``` rust sample test use macro_tools::*;

fn main() { let code = quote!( 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!( "{}", quote!( #e ) ) ); // < i8 // < i16 // < i32 } ```

To add to your project

cargo add macro_tools

Try out from the repository

shell test git clone https://github.com/Wandalen/wTools cd wTools cd sample/rust/macro_tools_trivial cargo run