Module pikevm

Source

Structs§

Builder
A builder for a PikeVM.
Cache
A cache represents mutable state that a PikeVM requires during a search.
Config
The configuration used for building a PikeVM.
FindMatches
An iterator over all non-overlapping matches for a particular search.
PikeVM
A virtual machine for executing regex searches with capturing groups.

Functions§

find_iter
Returns an iterator over all non-overlapping leftmost matches in the given bytes. If no match exists, then the iterator yields no elements.
is_match
Returns true if and only if this PikeVM matches the given haystack.
search
Executes a leftmost forward search and writes the spans of capturing groups that participated in a match into the provided Captures value. If no match was found, then Captures::is_match is guaranteed to return false.
search_slots