Module nom::traits

source ยท
Expand description

Traits input types have to implement to work with nom combinators

Macrosยง

Enumsยง

  • Indicates whether a comparison was successful, an error, or if more data was needed

Staticsยง

Traitsยง

  • Helper trait for types that can be viewed as a byte slice
  • Transforms common types to a char for basic token parsing
  • Abstracts comparison operations
  • Equivalent From implementation to avoid orphan rules in bits parsers
  • Abstracts something which can extend an Extend. Used to build modified input slices in escaped_transform
  • Look for a substring in self
  • Look for a token in self
  • Helper trait to show a byte slice as a hex dump
  • Abstracts common iteration operations on the input type
  • Abstract method to calculate the input length
  • Abstracts slicing operations
  • Methods to take as much input as possible until the provided function returns true for the current element.
  • Useful functions to calculate the offset between slices and show a hexdump of a slice
  • Used to integrate strโ€™s parse() method
  • Slicing operations using ranges.
  • Helper trait to convert numbers to usize.
  • Dummy trait used for default implementations (currently only used for InputTakeAtPosition and Compare).

Functionsยง