Expand description
Traits input types have to implement to work with nom combinators
Structs§
- Saturating
Iterator - A saturating iterator for usize.
Enums§
- Compare
Result - Indicates whether a comparison was successful, an error, or if more data was needed
Statics§
- CHARS 🔒
Traits§
- AsBytes
- Helper trait for types that can be viewed as a byte slice
- AsChar
- Transforms common types to a char for basic token parsing
- Compare
- Abstracts comparison operations
- Error
Convert - Equivalent From implementation to avoid orphan rules in bits parsers
- Extend
Into - Abstracts something which can extend an
Extend
. Used to build modified input slices inescaped_transform
- Find
Substring - Look for a substring in self
- Find
Token - Look for a token in self
- HexDisplay
- Helper trait to show a byte slice as a hex dump
- Input
- Parser input types must implement this trait
- NomRange
- Abstractions for range-like types.
- Offset
- Useful functions to calculate the offset between slices and show a hexdump of a slice
- ParseTo
- Used to integrate
str
’sparse()
method - ToUsize
- Helper trait to convert numbers to usize.