Crate daveparr_minigrep
source ·Expand description
§daveparr_minigrep
daveparr_minigrep
is a simple command line program that searches for a string in a file.
It is based on the example in “The Rust Book”.
Structs§
- The Config struct holds the values of the command line arguments.
Functions§
- The run function is the entry point for the program. It takes a Config instance and returns a Result.
- The search function takes a query string and a string slice and returns a vector of string slices that match the query.
- The search_case_insensitive function takes a query string and a string slice and returns a vector of string slices that match the query, ignoring case.