Macro node_enum

Source
node_enum!() { /* proc-macro */ }
Expand description

Collect TypedNodes together to form an enum

ยงSyntax

node_enum!{
  // rust enum
  enum $EnumName{
    // ...
  }
  // optional, to declare bidirectional links
  bidirectional!{
    $var.$field <-> $var.$field,
    // ...
  }
  // optional, to declare the grouping of enum variant
  group!{
    $group_name{$var1, $var2, ...}
    // ...
  }
}