Expand description
Stream capability for combinators to parse
Stream types include:
&[u8]andBytesfor binary data&str(aliased asStr) andBStrfor UTF-8 dataLocatingSlicecan track the location within the original buffer to report spansStatefulto thread global state through your parsersPartialcan mark an input as partial buffer that is being streamed into- [Custom stream types][crate::_topic::stream]
Structs§
- BStr
- Improved
Debugexperience for&[u8]UTF-8-ish streams - BitOffsets
- Iterator for bit stream (
(I, usize)) - Bytes
- Improved
Debugexperience for&[u8]byte streams - Checkpoint
- Ensure checkpoint details are kept private
- Locating
Slice - Allow collecting the span of a parsed token within a slice
- Partial
- Mark the input as a partial buffer for streaming input.
- Range
- A range bounded inclusively for counting parses performed
- Stateful
- Thread global state through your parsers
- Token
Slice - Specialized input for parsing lexed tokens
Enums§
- Compare
Result - Result of
Compare::compare
Traits§
- Accumulate
- Abstracts something which can extend an
Extend. Used to build modified input slices inescaped_transform - AsBStr
- Helper trait for types that can be viewed as a byte slice
- AsBytes
- Helper trait for types that can be viewed as a byte slice
- AsChar
- Transforms a token into a char for basic string parsing
- Compare
- Abstracts comparison operations
- Contains
Token - Check if a token is in a set of possible tokens
- Find
Slice - Look for a slice in self
- Location
- Current parse locations offset
- Offset
- Useful functions to calculate the offset between slices and show a hexdump of a slice
- Parse
Slice - Used to integrate
str’sparse()method - Slice
Len - Abstract method to calculate the input length
- Stream
- Core definition for parser input state
- Stream
IsPartial - Marks the input as being the complete buffer or a partial buffer for streaming input
- ToUsize
- Helper trait to convert numbers to usize.
- Update
Slice - Convert a
Streaminto an appropriateOutputtype
Type Aliases§
- Str
- UTF-8 Stream