Enum rustc_ast::ast::AttrKind [−][src]
pub enum AttrKind {
Normal(AttrItem, Option<LazyTokenStream>),
DocComment(CommentKind, Symbol),
}Variants
A normal attribute.
Tuple Fields of Normal
0: AttrItem1: Option<LazyTokenStream>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: CommentKind1: SymbolTrait 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 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