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

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

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

fn visit(&mut self, f: impl FnOnce(&mut Vec<Attribute>))[src]

Loading content...

Implementations on Foreign Types

impl VecOrAttrVec for Vec<Attribute>[src]

Loading content...

Implementors

impl VecOrAttrVec for AttrVec[src]

Loading content...