Expand description
Stream capability for combinators to parse
Stream types include:
&[u8]
andBytes
for binary data&str
(aliased asStr
) andBStr
for UTF-8 dataLocated
can track the location within the original buffer to report spansStateful
to thread global state through your parsersPartial
can mark an input as partial buffer that is being streamed into- [Custom stream types][crate::_topic::stream]
Structs§
- Improved
Debug
experience for&[u8]
UTF-8-ish streams - Iterator for bit stream (
(I, usize)
) - Improved
Debug
experience for&[u8]
byte streams - Ensure checkpoint details are kept privazte
- Allow collecting the span of a parsed token
- Mark the input as a partial buffer for streaming input.
- A range bounded inclusively for counting parses performed
- Thread global state through your parsers
Enums§
- Result of
Compare::compare
Traits§
- Abstracts something which can extend an
Extend
. Used to build modified input slices inescaped_transform
- Helper trait for types that can be viewed as a byte slice
- Helper trait for types that can be viewed as a byte slice
- Transforms a token into a char for basic string parsing
- Abstracts comparison operations
- Check if a token in in a set of possible tokens
- Look for a slice in self
- Number of indices input has advanced since start of parsing
- Useful functions to calculate the offset between slices and show a hexdump of a slice
- Used to integrate
str
’sparse()
method - Abstract method to calculate the input length
- Core definition for parser input state
- Marks the input as being the complete buffer or a partial buffer for streaming input
- Helper trait to convert numbers to usize.
- Convert a
Stream
into an appropriateOutput
type
Type Aliases§
- UTF-8 Stream