memtable-macros 0.2.0

Macro library that provides ability to derive typed tables and generate tables compile-time.
1
2
3
4
5
6
7
8
9
10
11
use syn::{parse_quote, ItemFn};

pub struct Args {}

pub fn make(_args: Args) -> ItemFn {
    parse_quote! {
        pub fn new() -> Self {
            <Self as ::core::default::Default>::default()
        }
    }
}