Trait syntax::attr::HasAttrs
[−]
[src]
pub trait HasAttrs: Sized { fn attrs(&self) -> &[Attribute]; fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(
self,
f: F
) -> Self; }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Required Methods
fn attrs(&self) -> &[Attribute]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementations on Foreign Types
impl HasAttrs for Vec<Attribute>
[src]
fn attrs(&self) -> &[Attribute]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementors
impl<T: HasAttrs> HasAttrs for Spanned<T>
impl HasAttrs for ThinVec<Attribute>
impl<T: HasAttrs + 'static> HasAttrs for P<T>
impl HasAttrs for StmtKind
impl HasAttrs for Stmt
impl HasAttrs for Item
impl HasAttrs for Expr
impl HasAttrs for Local
impl HasAttrs for ForeignItem
impl HasAttrs for StructField
impl HasAttrs for ImplItem
impl HasAttrs for TraitItem
impl HasAttrs for Arm
impl HasAttrs for Field
impl HasAttrs for FieldPat
impl HasAttrs for Variant_
impl HasAttrs for Annotatable