1 2 3 4 5 6 7 8 9 10 11
mod core; use core::search::{PdfSearchResult, handle}; /// entry point pub fn search( keyword: &str, filepath: &str, ) -> Result<Vec<PdfSearchResult>, Box<dyn std::error::Error>> { handle(keyword, filepath) }