Struct 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.
Tuple Fields
0: Lrc<Vec<(AttrAnnotatedTokenTree, Spacing)>>
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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: 8 bytes