Crate syn_error_experiment

Source

Modules§

parse
Parsing interface for parsing a token stream into a syntax tree node.
token
Tokens representing Rust punctuation, keywords, and delimiters.

Macros§

Token
A type-macro that expands to the name of the Rust type representation of a given token.
braced
Parse a set of curly braces and expose their content to subsequent parsers.
parse_macro_input
Parse the input TokenStream of a macro, triggering a compile error if the tokens fail to parse.

Structs§

Field
A named field of a braced struct.
Ident
A word of Rust code, which may be a keyword or legal variable name.
ItemEnum
An enum definition: enum E { A, B, C }.
ItemStruct
A struct definition: struct S { a: A, b: B }.
Variant
An enum variant.

Enums§

Item
Things that can appear directly inside of a module or scope.

Functions§

parse
Parse tokens of source code into the chosen syntax tree node.
parse2
Parse a proc-macro2 token stream into the chosen syntax tree node.
parse_str
Parse a string of Rust code into the chosen syntax tree node.