Expand description
A collection of parsers for Token
s (similar to combine::parser::{char, byte, item}
).
Structs§
- Delim
- Represents the return type of
delim
. - Ident
- Represents the return type of
ident
. - Keyword
- Represents the return type of
keyword
. - Literal
- Represents the return type of
literal
. - Punct
- Represents the return type of
punct
.
Functions§
- delim
- Parses a delimiter if it’s char representation is equal to
c
. - ident
- Parses an ident token and returns the inner
proc_macro::Ident
. - keyword
- Parses an ident token and succeeds if the ident is equal to
word
. - literal
- Parses a literal token (e.g. string, number, etc) and returns the inner
proc_macro::Literal
. - punct
- Parses a punctuation token and succeeds if it’s char representation is equal to
c
.