Enum rustc_ap_rustc_ast::ast::MacArgs [−][src]
pub enum MacArgs { Empty, Delimited(DelimSpan, MacDelimiter, TokenStream), Eq(Span, Token), }
Expand description
Arguments passed to an attribute or a function-like macro.
Variants
No arguments - #[attr]
.
Delimited(DelimSpan, MacDelimiter, TokenStream)
Delimited arguments - #[attr()/[]/{}]
or mac!()/[]/{}
.
Arguments of a key-value attribute - #[attr = "value"]
.
Implementations
Tokens inside the delimiters or after =
.
Proc macros see these tokens, for example.
Whether a macro with these arguments needs a semicolon when used as a standalone item or statement.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MacArgs
impl !UnwindSafe for MacArgs
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