Module rsonpath::result

source ·
Expand description

Result types that can be returned by a JSONPath query engine.

Modules§

  • Recorder implementation finding the starts and approximate ends of all matches. Faster than a full NodesRecorder, but the span may include trailing whitespace after the actual matched value.
  • Recorder implementation for counting the number of matches.
  • Empty Recorder implementation, mainly for testing purposes.
  • Recorder implementation finding the starts of all matches. Faster than a full NodesRecorder.
  • Main Recorder implementation collecting the bytes of all matches.

Structs§

  • Full information of a query match – its span and the input bytes in that span.
  • Span of a match – its start and end index.
  • Thin wrapper over an io::Write to provide a Sink impl.
  • Empty sink that consumes all matches into the void.

Enums§

Traits§

  • Base trait of any recorder, one that can react to a block of input being processed.
  • An observer that can determine the query result based on match and structural events coming from the execution engine.
  • Output sink consuming matches of the type D.

Type Aliases§

  • Result of counting query matches.
  • Representation of the starting index of a match.