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.
Implementations
Converts this AttrAnnotatedTokenStream to a plain TokenStream During conversion, AttrAnnotatedTokenTree::Attributesget 'flattened' back to aTokenStreamof the formouter_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 AttrAnnotatedTokenStreamimpl !Send for AttrAnnotatedTokenStreamimpl !Sync for AttrAnnotatedTokenStreamimpl Unpin for AttrAnnotatedTokenStreamimpl !UnwindSafe for AttrAnnotatedTokenStreamBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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