Expand description
Global search and replace operations.
MacrosΒ§
- impl_
file_ πmatches - Implements
FileMatchesfor match types with the samepath,sourceandmatchesfields.
StructsΒ§
- Match
Ref π - 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Β§
- File
Matches π - 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.