RustQ.Meta.RustMacro.Definition (rustq v0.9.2)

Copy Markdown View Source

Normalized defrustmacro declaration metadata.

Summary

Types

arg()

@type arg() ::
  {atom(), fragment()}
  | {:labeled, atom(), atom(), fragment()}
  | {:repeat, atom(), [arg()]}

fragment()

@type fragment() :: :expr | :ty | :ident | :literal

t()

@type t() :: %RustQ.Meta.RustMacro.Definition{
  args: [arg()],
  body_ast: Macro.t(),
  call_ast: Macro.t(),
  name: atom(),
  rust_module: [atom()] | nil
}