[][src]Trait rustc_ap_rustc_ast::attr::HasAttrs

pub trait HasAttrs: Sized {
    fn attrs(&self) -> &[Attribute];
fn visit_attrs(&mut self, f: impl FnOnce(&mut Vec<Attribute>)); }

Required methods

fn attrs(&self) -> &[Attribute]

fn visit_attrs(&mut self, f: impl FnOnce(&mut Vec<Attribute>))

Loading content...

Implementations on Foreign Types

impl<T: HasAttrs> HasAttrs for Spanned<T>[src]

impl HasAttrs for Vec<Attribute>[src]

Loading content...

Implementors

impl HasAttrs for StmtKind[src]

impl HasAttrs for Arm[src]

impl HasAttrs for Expr[src]

impl HasAttrs for Field[src]

impl HasAttrs for FieldPat[src]

impl HasAttrs for GenericParam[src]

impl HasAttrs for Item[src]

impl HasAttrs for Local[src]

impl HasAttrs for Param[src]

impl HasAttrs for Stmt[src]

impl HasAttrs for StructField[src]

impl HasAttrs for Variant[src]

impl HasAttrs for AssocItem[src]

impl HasAttrs for AttrVec[src]

impl HasAttrs for ForeignItem[src]

impl<T: HasAttrs + 'static> HasAttrs for P<T>[src]

Loading content...