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)
| 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 | /// |
no outgoing calls