concept grep - lite in category rust
appears as: grep-lite

This is an excerpt from Manning's book Rust in Action.
We will be building
grep-lite, a much stripped down version of the ubiquitousgreputility.grep-litelooks for patterns within text, printing lines that match. A simple program allows us to focus on the unique features of Rust.
Listing 2. 19 is our first iteration of
grep-lite. Its hard-coded parameters restrict its flexibility somewhat, but they are useful illustrations of string literals.