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

Method with_options

atomic-core/src/record/context.rs:208–211  ·  view source on GitHub ↗

Set detection options. # Arguments `options` - Detection options to use # Example ```rust,ignore use atomic_core::diff::Algorithm; let ctx = DetectContext::new(&txn, &working_copy, &changes) .with_options( DetectOptions::new() .with_algorithm(Algorithm::Patience) .with_check_mtime(false) ); ```

(mut self, options: DetectOptions)

Source from the content-addressed store, hash-verified

206 /// );
207 /// ```
208 pub fn with_options(mut self, options: DetectOptions) -> Self {
209 self.options = options;
210 self
211 }
212
213 /// Get the pristine transaction reference.
214 ///

Calls

no outgoing calls