1 2 3 4 5 6 7 8 9 10
// todo: make private pub mod core; use core::search::{handle, TextFileSearchResult}; use std::io; /// entry point pub fn search(keyword: &str, filepath: &str) -> Result<TextFileSearchResult, io::Error> { handle(keyword, filepath) }