MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_algorithm

Method with_algorithm

atomic-core/src/record/workflow/options.rs:147–150  ·  view source on GitHub ↗

Set the diff algorithm. # Arguments `algorithm` - Algorithm to use for content comparison # Example ```rust use atomic_core::record::workflow::WorkflowOptions; use atomic_core::diff::Algorithm; let opts = WorkflowOptions::new().with_algorithm(Algorithm::Patience); assert_eq!(opts.algorithm(), Algorithm::Patience); ```

(mut self, algorithm: Algorithm)

Source from the content-addressed store, hash-verified

145 /// assert_eq!(opts.algorithm(), Algorithm::Patience);
146 /// ```
147 pub fn with_algorithm(mut self, algorithm: Algorithm) -> Self {
148 self.algorithm = algorithm;
149 self
150 }
151
152 /// Set whether to use mtime optimization.
153 ///

Callers 4

test_algorithm_builderFunction · 0.45
test_builder_chainingFunction · 0.45
test_cloneFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_algorithm_builderFunction · 0.36
test_builder_chainingFunction · 0.36
test_cloneFunction · 0.36