Crates.io | grep-search |
lib.rs | grep-search |
version | 0.1.7 |
source | src |
created_at | 2024-11-22 15:32:23.349266 |
updated_at | 2024-11-24 09:16:52.505011 |
description | This is search query in contents lib. |
homepage | |
repository | |
max_upload_size | |
id | 1457463 |
size | 3,257 |
search
grep libsearch
:use search::{search, search_case_insensitive};
fn main() {
let query = "RUst";
let contents = "Rust is good language";
let results = search(query, contents, false, false, true);
assert_eq!(results, vec!["Rust"]) // -> True
}
search
-- 0.1.7grep
project