Module rune::macros [−][src]
The macro system of Rune.
Structs
FormatArgs | A format specification: A format string followed by arguments to be formatted in accordance with that string. |
MacroContext | Context for a running macro. |
Quote | |
Storage | Storage for synthetic language items. |
TokenStream | A token stream. |
TokenStreamIter | A token stream iterator. |
Traits
IntoLit | Helper trait used for things that can be converted into tokens. |
ToTokens | Trait for things that can be turned into tokens. |
Functions
eval | Evaluate the given target as a constant expression. |
quote_fn | Construct a token stream from a function. |
resolve | Resolve the value of a token. |
stringify | Stringify the token stream. |
to_tokens | Convert the given argument into a tokens stream. |
with_context | Install the given context and call the provided function with the installed context. |