Use case
Following situation:
I want to read and parse some input, but it's not so large-scale parsing task, so I'd like to avoid adding a heavyweight crate like nom or nom8 to my
dependencies
...
use Reader;
Operations
advance_by
,rewind_by
next
,next_if
peek
,peek2
,peek3
consume
,consume_oneof
skip_while
,skip_whitespace
read_while
read_uint
,read_int
read_string
,read_string_unchecked
read_camel
,read_snake
,read_kebab
Features
"location"
You can track the reader's parsing location ( line and column ) in the input bytes.
When this feature is activated, rewind_by
operation is NOT available.
/* enable "location" feature */
use Reader;