Expand description
This is the library crate of the minigrep project, a command line program intended to read in a file and search for a word in the text, where the first command line argument is the word to query, and the second word is the name of the text file, with the file extension “.txt” included.
Structs§
- Config
- Holds the configuration parameters of the program, including the command line arguments and the environment variable determining whether or not the user wants to search for a phrase in a file without regards to capitalization.
Functions§
- run
- Drives the main function of the program and propogates any possible errors to the main function for handling
- search
- Performs a search for a given set of characters the user enters inside the contents of a String; returns a Vector of the lines that contain the set of characters.
- search_
case_ insensitive - Performs a CASE INSENSITIVE search for a given set of characters the user enters inside the contents of a String; returns a Vector of the lines that contain the set of characters.