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 StmtKindimpl HasAttrs for Stmtimpl HasAttrs for Itemimpl HasAttrs for Exprimpl HasAttrs for Localimpl HasAttrs for ForeignItemimpl HasAttrs for StructFieldimpl HasAttrs for ImplItemimpl HasAttrs for TraitItemimpl HasAttrs for Armimpl HasAttrs for Fieldimpl HasAttrs for FieldPatimpl HasAttrs for Variant_impl HasAttrs for Annotatable