Struct rustc_ap_rustc_ast::ast::MetaItem [−][src]
pub struct MetaItem {
pub path: Path,
pub kind: MetaItemKind,
pub span: Span,
}Expand description
A spanned compile-time attribute item.
E.g., #[test], #[derive(..)], #[rustfmt::skip] or #[feature = "foo"].
Fields
path: Pathkind: MetaItemKindspan: SpanImplementations
For a single-segment meta item, returns its name; otherwise, returns None.
This is used in case you want the value span instead of the whole attribute. Example:
#[doc(alias = "foo")]
In here, it’ll return a span for "foo".
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MetaItemimpl !UnwindSafe for MetaItemBlanket 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 = TShould always be Self
pub fn vzip(self) -> V