Crate my_mini_grep

Source

Structs§

Config
Stores the string to be searched for, the file path and whether the search is case-insensitive or not

Functions§

run
Selects the appropriate variant of the search function based on the IGNORE_CASE environment variable
search
Searches for the given string in the contents of the file
search_case_insensitive
Searches for the given string in the contents of the file, without case sensitivity