GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing doc.rust-lang.org — Macros - The Rust Reference MacrosThe functionality and syntax of Rust can be extended with custom definitions called macros. They are given names, and invoked through a consistent syntax: There are two ways to define new macros:
Macro invocationSyntax
DelimTokenTree → TokenTree → MacroInvocationSemi → A macro invocation expands a macro at compile time and replaces the invocation with the result of the macro. Macros may be invoked in the following situations:
When used as an item or a statement, the MacroInvocationSemi form is used where a semicolon is required at the end when not using curly braces. Visibility qualifiers are never allowed before a macro invocation or
Macros invocations can be resolved via two kinds of scopes:
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |