Trait rustc_ast::ast_like::VecOrAttrVec[][src]

trait VecOrAttrVec {
    fn visit(&mut self, f: impl FnOnce(&mut Vec<Attribute>));
}
Expand description

Helper trait for the macros below. Abstracts over the two types of attribute fields that AST nodes may have (Vec<Attribute> or AttrVec)

Required methods

Implementations on Foreign Types

Implementors