Expand description
Utilities to create a source of input to the parser.
Input must be implemented for the parser to fetch input. Make sure your needs aren’t
covered by the BufferedInput.
Structs§
- Buffered
Input - A wrapper around an
Iteratorofchars with a buffer.
Enums§
- Skip
Tabs - Behavior to adopt regarding treating tabs as whitespace.
Traits§
- Input
- Interface for a source of characters.
Functions§
- is_
alpha - Check whether the character is a digit, letter,
_or-. - is_
blank - Check whether the character is a whitespace (
or\t). - is_
blank_ or_ breakz - Check whether the character is nil, a linebreak or a whitespace.
- is_
break - Check whether the character is a line break (
\ror\n). - is_
breakz - Check whether the character is nil or a line break (
\0,\r,\n). - is_
digit - Check whether the character is an ascii digit.
- is_flow
- Check whether the character is a YAML flow character (one of
,[]{}). - is_z
- Check whether the character is nil (
\0).