Crate minigrep_vandaeldev

Crate minigrep_vandaeldev 

Source
Expand description

§Minigrep

minigrep_vandaeldev is a CLI tool for searching a particular piece of text within a textfile.

Structs§

Config
An interface to store configuration arguments passed through the CLI.

Functions§

run
The entry function of the program. Reads the file of the given config, and searches through the contents for a match with the query of the given config. Prints out the matching lines.
search_ci
Searches through contents, filtering out lines that do not match query. This search is case insensitive. Returns a new vector containing the matching lines.
search_cs
Searches through contents, filtering out lines that do not match query. This search is case sensitive. Returns a new vector containing the matching lines.