Enum rustc_ast::tokenstream::AttrAnnotatedTokenTree [−][src]
pub enum AttrAnnotatedTokenTree {
Token(Token),
Delimited(DelimSpan, DelimToken, AttrAnnotatedTokenStream),
Attributes(AttributesData),
}
Expand description
Like TokenTree
, but for AttrAnnotatedTokenStream
Variants
Token(Token)
Tuple Fields of Token
0: Token
Delimited(DelimSpan, DelimToken, AttrAnnotatedTokenStream)
Tuple Fields of Delimited
Attributes(AttributesData)
Stores the attributes for an attribute target,
along with the tokens for that attribute target.
See AttributesData
for more information
Tuple Fields of Attributes
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AttrAnnotatedTokenTree
impl !Send for AttrAnnotatedTokenTree
impl !Sync for AttrAnnotatedTokenTree
impl Unpin for AttrAnnotatedTokenTree
impl !UnwindSafe for AttrAnnotatedTokenTree
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: 32 bytes
Size for each variant:
Token
: 31 bytesDelimited
: 31 bytesAttributes
: 23 bytes