Module traits

Source
Expand description

Traits input types have to implement to work with nom combinators

Structs§

SaturatingIterator
A saturating iterator for usize.

Enums§

CompareResult
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
ErrorConvert
Equivalent From implementation to avoid orphan rules in bits parsers
ExtendInto
Abstracts something which can extend an Extend. Used to build modified input slices in escaped_transform
FindSubstring
Look for a substring in self
FindToken
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’s parse() method
ToUsize
Helper trait to convert numbers to usize.

Functions§

lowercase_byte 🔒