Enum rustc_ast::ast::AttrKind [−][src]
pub enum AttrKind {
Normal(AttrItem, Option<LazyTokenStream>),
DocComment(CommentKind, Symbol),
}Variants
Normal(AttrItem, Option<LazyTokenStream>)A normal attribute.
DocComment(CommentKind, Symbol)A doc comment (e.g. /// ..., //! ..., /** ... */, /*! ... */).
Doc attributes (e.g. #[doc="..."]) are represented with the Normal
variant (which is much less compact and thus more expensive).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AttrKindimpl !UnwindSafe for AttrKindBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes