Struct ra_ap_hir_def::item_tree::MacroDef [−][src]
pub struct MacroDef { pub name: Name, pub visibility: RawVisibilityId, pub ast_id: FileAstId<MacroDef>, }
Expand description
“Macros 2.0” macro definition.
Fields
name: Name
visibility: RawVisibilityId
ast_id: FileAstId<MacroDef>
Trait Implementations
Looks up an instance of Self
in an item tree.
Downcasts a ModItem
to a FileItemTreeId
specific to this type.
Upcasts a FileItemTreeId
to a generic ModItem
.
Auto Trait Implementations
impl RefUnwindSafe for MacroDef
impl UnwindSafe for MacroDef
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.