Function identifier_string_parser

Source
fn identifier_string_parser(input: &mut &str) -> ModalResult<IdentifierString>
Expand description

Recognizes an IdentifierString in a string slice.

Consumes all characters in input up to the next colon (“:”) or EOF. Allows providing a specific label to provide as context label in case of error (see [StrContext::Label]).

§Errors

Returns an error if

  • not all characters in input before “:”/EOF are in the allowed set of characters (see IdentifierString::valid_chars),
  • or there is not at least one character before a colon (“:”) or EOF.