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

Method with_path

crates/learner/src/lib.rs:507–510  ·  view source on GitHub ↗

Sets path to load configuration from. # Arguments `path` - Directory containing config.toml # Examples ```no_run # use learner::Learner; # async fn example() -> Result<(), Box > { let learner = Learner::builder().with_path("~/.learner").build().await?; # Ok(()) # } ```

(mut self, path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

505 /// # }
506 /// ```
507 pub fn with_path(mut self, path: impl AsRef<Path>) -> Self {
508 self.config_path = Some(path.as_ref().to_path_buf());
509 self
510 }
511
512 /// Builds a new [`Learner`] instance with the configured options.
513 ///

Callers 3

from_pathMethod · 0.80
test_learner_creationFunction · 0.80
create_test_learnerFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_learner_creationFunction · 0.64
create_test_learnerFunction · 0.64