INTERNAL: Do not use. A Rust 2.0 style declarative macro definition.
For example:
pub macro vec_of_two($element:expr) {
vec![$element, $element]
}
Import path
import codeql.rust.elements.internal.generated.RawDirect supertypes
Indirect supertypes
Predicates
| getArgs | Gets the arguments of this macro def, if it exists. |
| getAttr | Gets the |
| getBody | Gets the body of this macro def, if it exists. |
| getName | Gets the name of this macro def, if it exists. |
| getNumberOfAttrs | Gets the number of attrs of this macro def. |
| getVisibility | Gets the visibility of this macro def, if it exists. |
| toString |
Inherited predicates
| getAttributeMacroExpansion | Gets the attribute macro expansion of this item, if it exists. | from Item |