Enum rustc_ap_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 AttrKind
impl !UnwindSafe for AttrKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V