Skip to main content

Module search

Module search 

Source
Expand description

Global search and replace operations.

MacrosΒ§

impl_file_matches πŸ”’
Implements FileMatches for match types with the same path, source and matches fields.

StructsΒ§

MatchRef πŸ”’
Position of a match in Matches: the type of its file, the index of the file in its type, and the index of the match in its file.

TraitsΒ§

FileMatches πŸ”’
Common access to the matches of a file, whatever its type.

FunctionsΒ§

file_source πŸ”’
Returns the file source of a search source.
files_by_type πŸ”’
Returns the matches of each file, by type of file, in a fixed order.
first_ids πŸ”’
Returns the ID of the first match of each file, by type of file, numbering the matches like match_refs.
match_refs πŸ”’
Returns the position of every match, in the order their IDs follow.
retain_indexes πŸ”’
Keeps only the items at the provided indexes.
search_source πŸ”’
Returns the search source of a file source.
selected_files πŸ”’
Returns copies of the files of a type in open packs with selected matches, keeping only those matches.
selected_match_holders πŸ”’
Returns the matches with the provided IDs, grouped by file as the search expects them to replace them.
summarize πŸ”’
Counts the matches of a search, by type of file.
to_value πŸ”’
Serializes a match, or returns an empty object if it can’t be serialized.