Module syntax::attr
[−]
[src]
Re-exports
pub use self::StabilityLevel::*; |
pub use self::ReprAttr::*; |
pub use self::IntType::*; |
Structs
Deprecation | |
RustcConstUnstable | |
RustcDeprecation | |
Stability |
Represents the #[stable], #[unstable], #[rustc_{deprecated,const_unstable}] attributes. |
Enums
InlineAttr | |
IntType | |
ReprAttr | |
StabilityLevel |
The available stability levels. |
UnwindAttr |
Traits
HasAttrs |
Functions
cfg_matches |
Tests if a cfg-pattern matches the cfg set |
contains_feature_attr |
Check if |
contains_name | |
eval_condition |
Evaluate a cfg-like condition (with |
find_by_name | |
find_crate_name | |
find_deprecation |
Find the deprecation attribute. |
find_inline_attr |
Determine what |
find_repr_attrs |
Parse #[repr(...)] forms. |
find_stability |
Find the first stability attribute. |
find_unwind_attr |
Determine what |
first_attr_value_str_by_name | |
is_known | |
is_used | |
list_contains_name | |
mark_known | |
mark_used | |
mk_attr_id | |
mk_attr_inner |
Returns an inner attribute with the given value. |
mk_attr_outer |
Returns an outer attribute with the given value. |
mk_list_item | |
mk_list_word_item | |
mk_name_value_item | |
mk_name_value_item_str | |
mk_spanned_attr_inner |
Returns an inner attribute with the given value and span. |
mk_spanned_attr_outer |
Returns an outer attribute with the given value and span. |
mk_spanned_list_item | |
mk_spanned_name_value_item | |
mk_spanned_word_item | |
mk_sugared_doc_attr | |
mk_word_item | |
requests_inline |
True if |