Set the diff algorithm. # Arguments `algorithm` - Algorithm to use for content comparison # Example ```rust use atomic_core::record::DetectOptions; use atomic_core::diff::Algorithm; let opts = DetectOptions::new().with_algorithm(Algorithm::Patience); assert_eq!(opts.algorithm, Algorithm::Patience); ```
(mut self, algorithm: Algorithm)
| 183 | /// assert_eq!(opts.algorithm, Algorithm::Patience); |
| 184 | /// ``` |
| 185 | pub fn with_algorithm(mut self, algorithm: Algorithm) -> Self { |
| 186 | self.algorithm = algorithm; |
| 187 | self |
| 188 | } |
| 189 | |
| 190 | /// Set whether to use mtime optimization. |
| 191 | /// |
no outgoing calls