Struct syntax::ast::MacroDef
[−]
[src]
pub struct MacroDef {
pub ident: Ident,
pub attrs: Vec<Attribute>,
pub id: NodeId,
pub span: Span,
pub imported_from: Option<Ident>,
pub export: bool,
pub use_locally: bool,
pub allow_internal_unstable: bool,
pub body: Vec<TokenTree>,
}Unstable
A macro definition, in this crate or imported from another.
Not parsed directly, but created on macro import or macro_rules! expansion.
Fields
ident | Unstable |
attrs | Unstable |
id | Unstable |
span | Unstable |
imported_from | Unstable |
export | Unstable |
use_locally | Unstable |
allow_internal_unstable | Unstable |
body | Unstable |