[−][src]Module syntax::attr
Functions dealing with attributes and meta items
Re-exports
pub use IntType::*; |
pub use ReprAttr::*; |
pub use StabilityLevel::*; |
pub use crate::ast::Attribute; |
Structs
| AttributeTemplate | A template that the attribute input must match.
Only top-level shape ( |
| Deprecation | |
| RustcDeprecation | |
| Stability | Represents the #[stable], #[unstable], #[rustc_{deprecated,const_unstable}] attributes. |
Enums
| InlineAttr | |
| IntType | |
| OptimizeAttr | |
| ReprAttr | |
| StabilityLevel | The available stability levels. |
| TransparencyError | |
| UnwindAttr |
Traits
| HasAttrs |
Functions
| cfg_matches | Tests if a cfg-pattern matches the cfg set |
| check_builtin_macro_attribute | |
| contains_feature_attr | Checks if |
| contains_name | |
| eval_condition | Evaluate a cfg-like condition (with |
| filter_by_name | |
| find_by_name | |
| find_crate_name | |
| find_deprecation | Finds the deprecation attribute. |
| find_repr_attrs | Parse #[repr(...)] forms. |
| find_stability | Collects stability info from all stability attributes in |
| find_transparency | |
| find_unwind_attr | Determine what |
| first_attr_value_str_by_name | |
| inject | |
| is_known | |
| is_known_lint_tool | |
| is_used | |
| list_contains_name | |
| mark_known | |
| mark_used | |
| mk_attr_inner | Returns an inner attribute with the given value and span. |
| mk_attr_outer | Returns an outer attribute with the given value and span. |
| mk_list_item | |
| mk_name_value_item | |
| mk_name_value_item_str | |
| mk_nested_word_item | |
| mk_sugared_doc_attr | |
| mk_word_item |