Module result

Source
Expand description

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

Modules§

approx_span
Recorder implementation finding the starts and approximate ends of all matches.
count
Recorder implementation for counting the number of matches.
empty
Empty Recorder implementation, mainly for testing purposes.
index
Recorder implementation finding the starts of all matches. Faster than a full NodesRecorder.
nodes
Main Recorder implementation collecting the bytes of all matches.

Structs§

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

Enums§

MatchedNodeType
Type of a value being reported to a Recorder.

Traits§

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

Type Aliases§

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