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

Method with_config

crates/learner/src/lib.rs:487–490  ·  view source on GitHub ↗

Sets explicit configuration for the builder. # Arguments `config` - Configuration to use # Examples ```no_run # use learner::{Config, Learner}; # async fn example() -> Result<(), Box > { let config = Config::default(); let learner = Learner::builder().with_config(config).build().await?; # Ok(()) # } ```

(mut self, config: Config)

Source from the content-addressed store, hash-verified

485 /// # }
486 /// ```
487 pub fn with_config(mut self, config: Config) -> Self {
488 self.config = Some(config);
489 self
490 }
491
492 /// Sets path to load configuration from.
493 ///

Callers 3

initFunction · 0.45
test_learner_creationFunction · 0.45
create_test_learnerFunction · 0.45

Calls 1

buildMethod · 0.80

Tested by 2

test_learner_creationFunction · 0.36
create_test_learnerFunction · 0.36