☰
In rustc_lexer
In rustc_lexer
Modules
cursor
unescape
Structs
Token
Enums
Base
DocStyle
LiteralKind
RawStrError
TokenKind
Functions
first_token
is_id_continue
is_id_start
is_ident
is_whitespace
strip_shebang
tokenize
validate_raw_str
?
Function
rustc_lexer
::
first_token
source
·
[
−
]
pub fn first_token(input: &
str
) ->
Token
Expand description
Parses the first token from the provided input string.