Struct rustc_ap_rustc_ast::tokenstream::AttrAnnotatedTokenStream [−][src]
Expand description
A AttrAnnotatedTokenStream
is similar to a TokenStream
, but with extra
information about the tokens for attribute targets. This is used
during expansion to perform early cfg-expansion, and to process attributes
during proc-macro invocations.
Implementations
Converts this AttrAnnotatedTokenStream
to a plain TokenStream During conversion,
AttrAnnotatedTokenTree::Attributesget 'flattened' back to a
TokenStreamof the form
outer_attr attr_target`.
If there are inner attributes, they are inserted into the proper
place in the attribute target tokens.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for AttrAnnotatedTokenStream
impl !Send for AttrAnnotatedTokenStream
impl !Sync for AttrAnnotatedTokenStream
impl Unpin for AttrAnnotatedTokenStream
impl !UnwindSafe for AttrAnnotatedTokenStream
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