Skip to content

Instantly share code, notes, and snippets.

View avraamisvi's full-sized avatar

Abraão avraamisvi

View GitHub Profile
macro_rules! decl {
($i:ident: $t:ident, {$($name:ident: $ft:ty),+}, {$($on:ident: $ot:ty),*}) => {
mod $i {
use core::ql2::Term_TermType;
use rustc_serialize::json::Json;
use rustc_serialize::json;
use core::select::Table;
pub struct Opts {
$($on: Option<$ot>)*