Skip to main content

Module context

Module context 

Source
Expand description

Context expander — turns hits into an emit plan, optionally including neighbors.

Structs§

EmitOwned
Owned form of Emit — the expander hands these to the caller.
LineContext
Emits each hit plus n lines before and after, merging overlapping windows.
NoContext
Emits only hits, nothing else.

Traits§

Expander
An expander consumes (Line, MatchInfo) pairs and produces Emits.