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; }
Required Methods
fn attrs(&self) -> &[Attribute]
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self
Implementations on Foreign Types
impl HasAttrs for Vec<Attribute>
[src]
impl HasAttrs for Vec<Attribute>
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 GenericParam
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