pub enum AttributeType {
Normal,
Whitelisted,
Gated(&'static str, &'static str),
CrateLevel,
}Variants
Normal | Normal, builtin attribute that is consumed
by the compiler before the unused_attribute check
|
Whitelisted | Builtin attribute that may not be consumed by the compiler
before the unused_attribute check. These attributes
will be ignored by the unused_attribute lint
|
Gated | Is gated by a given feature gate and reason
These get whitelisted too
|
CrateLevel | Builtin attribute that is only allowed at the crate level
|
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).