MCPcopy Create free account
hub / github.com/Autoparallel/learner / path

Method path

crates/learner/src/pdf.rs:166–169  ·  view source on GitHub ↗

Sets the path to the PDF file to analyze. # Arguments `path` - Path to the PDF file, convertible to [`PathBuf`] # Examples ```no_run # use learner::pdf::PDFContentBuilder; let builder = PDFContentBuilder::new().path("paper.pdf"); ```

(mut self, path: P)

Source from the content-addressed store, hash-verified

164 /// let builder = PDFContentBuilder::new().path("paper.pdf");
165 /// ```
166 pub fn path<P: Into<PathBuf>>(mut self, path: P) -> Self {
167 self.path = Some(path.into());
168 self
169 }
170
171 /// Analyzes the PDF file and extracts its content.
172 ///

Callers 15

setup_test_daemonFunction · 0.80
temp_dbFunction · 0.80
test_learner_creationFunction · 0.80
test_pdf_page_extractionFunction · 0.80
setup_test_dbFunction · 0.80
test_storage_path_validFunction · 0.80
with_config_dirMethod · 0.80
create_test_learnerFunction · 0.80

Calls

no outgoing calls

Tested by 13

temp_dbFunction · 0.64
test_learner_creationFunction · 0.64
test_pdf_page_extractionFunction · 0.64
setup_test_dbFunction · 0.64
test_storage_path_validFunction · 0.64
create_test_learnerFunction · 0.64
test_iacr_pdf_from_paperFunction · 0.64