Trait rustfmt_nightly::attr::MetaVisitor
source · pub(crate) trait MetaVisitor<'ast> {
fn visit_meta_item(&mut self, meta_item: &'ast MetaItem) { ... }
fn visit_meta_list(
&mut self,
_meta_item: &'ast MetaItem,
list: &'ast [NestedMetaItem]
) { ... }
fn visit_meta_word(&mut self, _meta_item: &'ast MetaItem) { ... }
fn visit_meta_name_value(
&mut self,
_meta_item: &'ast MetaItem,
_lit: &'ast Lit
) { ... }
fn visit_nested_meta_item(&mut self, nm: &'ast NestedMetaItem) { ... }
fn visit_literal(&mut self, _lit: &'ast Lit) { ... }
}
Provided Methods
source
fn visit_meta_item(&mut self, meta_item: &'ast MetaItem)
sourcefn visit_meta_list(
fn visit_meta_list(
&mut self,
_meta_item: &'ast MetaItem,
list: &'ast [NestedMetaItem]
)
source
fn visit_meta_word(&mut self, _meta_item: &'ast MetaItem)
source
fn visit_meta_name_value(&mut self, _meta_item: &'ast MetaItem, _lit: &'ast Lit)
source
fn visit_nested_meta_item(&mut self, nm: &'ast NestedMetaItem)
source