rustfmt_nightly::attr

Trait MetaVisitor

source
pub(crate) trait MetaVisitor<'ast> {
    // Provided methods
    fn visit_meta_item(&mut self, meta_item: &'ast MetaItem) { ... }
    fn visit_meta_list(
        &mut self,
        _meta_item: &'ast MetaItem,
        list: &'ast [MetaItemInner],
    ) { ... }
    fn visit_meta_word(&mut self, _meta_item: &'ast MetaItem) { ... }
    fn visit_meta_name_value(
        &mut self,
        _meta_item: &'ast MetaItem,
        _lit: &'ast MetaItemLit,
    ) { ... }
    fn visit_meta_item_inner(&mut self, nm: &'ast MetaItemInner) { ... }
    fn visit_meta_item_lit(&mut self, _lit: &'ast MetaItemLit) { ... }
}

Provided Methods§

source

fn visit_meta_item(&mut self, meta_item: &'ast MetaItem)

source

fn visit_meta_list( &mut self, _meta_item: &'ast MetaItem, list: &'ast [MetaItemInner], )

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 MetaItemLit, )

source

fn visit_meta_item_inner(&mut self, nm: &'ast MetaItemInner)

source

fn visit_meta_item_lit(&mut self, _lit: &'ast MetaItemLit)

Implementors§

source§

impl<'ast> MetaVisitor<'ast> for PathVisitor