Skip to main content

mcp_table_parse

Macro mcp_table_parse 

Source
macro_rules! mcp_table_parse {
    (@cols $identity:expr, $cat:literal, $desc:literal,
     [$($cols:tt)*], [$($schemas:tt)*],
     $col:literal : Json($($ty:tt)+), $($rest:tt)*) => { ... };
    (@cols $identity:expr, $cat:literal, $desc:literal,
     [$($cols:tt)*], [$($schemas:tt)*],
     $col:literal : $typ:ident, $($rest:tt)*) => { ... };
    (@cols $identity:expr, $cat:literal, $desc:literal,
     [$($cols:tt)*], [$($schemas:tt)*],
     $col:literal : Json($($ty:tt)+)) => { ... };
    (@cols $identity:expr, $cat:literal, $desc:literal,
     [$($cols:tt)*], [$($schemas:tt)*],
     $col:literal : $typ:ident) => { ... };
    (@cols $identity:expr, $cat:literal, $desc:literal,
     [$($cols:tt)*], [$($schemas:tt)*], ) => { ... };
    (@emit $identity:expr, $cat:literal, $desc:literal,
     [$({ $col:literal, $typ:ident },)*],
     [$({ $table:expr, $jcol:literal, $($jty:tt)+ },)*]) => { ... };
}
Expand description

Internal tt-munching helper for mcp_table!.