pub fn search<'a>(query: &str, contents: &'a str) -> Vec<ResultType<'a>>Expand description
Find text line by query inside the contents
ยงExamples
let text = "lalal
hello world
hi
hello!
"
let answer = my_crate::search("hello", "text");
println!("{}", answer);
// hello world
// hello!