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§

Config
The Config struct holds the values of the command line arguments.

Functions§

run
The run function is the entry point for the program. It takes a Config instance and returns a Result.
search
The search function takes a query string and a string slice and returns a vector of string slices that match the query.
search_case_insensitive
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.