-record(searcher, { 'fun' :: fun((any(), boyer_moore:bounds()) -> {ok, integer()} | {error, nil}) }).