blob: a55efbb51998d1c1f9bc02ae8f76c16dfc6964dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#![allow(unused_imports)]
//! This file provides a macro to delegate the implementation of a
//! type that wraps a graph. More precisely, the macro helps the
//! wrapper type implement the various Graph-related traits.
use proc_macro::TokenStream;
use core::iter::Peekable;
#[proc_macro_derive(Testing)]
pub fn test_derive(input: TokenStream) -> TokenStream {
let input = input.into_iter().peekable();
for tree in input {
println!("tree = {tree:?}");
}
TokenStream::new()
}
|