Skip to main content

Module reverse_suffix

Module reverse_suffix 

Source
Expand description

Routines specific to the reverse suffix optimization.

FunctionsΒ§

has_no_earlier_match πŸ”’
Returns true when it’s impossible for an earlier match to be detected after a literal candidate (corresponding to suffix) has been found.
strip_literal_suffix πŸ”’
Strip suffix from the end of hir and return the HIR that remains.
strip_literal_suffix_at πŸ”’
Strip a terminal part of suffix[..suffix_cursor] from the end of hir.
strip_repetition_literal_suffix πŸ”’