Function minigrep_icy::search [−][src]
pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str>
Example
let contents = "\ Rust: safe, fast, productive."; let res = minigrep_icy::search("Rust",contents); assert_eq!(vec!["Rust:"],res)