Enum rustc_ast::ast::AttrKind [−][src]
pub enum AttrKind {
Normal(AttrItem, Option<LazyTokenStream>),
DocComment(CommentKind, Symbol),
}
Variants
Normal(AttrItem, Option<LazyTokenStream>)
A normal attribute.
Tuple Fields of Normal
0: AttrItem
1: Option<LazyTokenStream>
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).
Tuple Fields of DocComment
0: CommentKind
1: Symbol
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AttrKind
impl !UnwindSafe for AttrKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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
Size for each variant:
Normal
: 103 bytesDocComment
: 7 bytes