[][src]Trait syntax::attr::HasAttrs

pub trait HasAttrs: Sized {
    fn attrs(&self) -> &[Attribute];
fn visit_attrs<F: FnOnce(&mut Vec<Attribute>)>(&mut self, f: F); }
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Required methods

Important traits for &'_ [u8]
fn attrs(&self) -> &[Attribute]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Implementations on Foreign Types

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 ForeignItem[src]

impl HasAttrs for GenericParam[src]

impl HasAttrs for ImplItem[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 TraitItem[src]

impl HasAttrs for Variant[src]

impl HasAttrs for ThinVec<Attribute>[src]

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

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

Loading content...