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