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

Method with_view

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

Set the view to compare against. By default, detection compares against the repository's current view. Use this method to compare against a specific view. # Arguments `view` - The view state to compare against # Example ```rust,ignore let ctx = DetectContext::new(&txn, &working_copy, &changes) .with_view(&feature_view); ```

(mut self, view: &'a ViewState)

Source from the content-addressed store, hash-verified

183 /// .with_view(&feature_view);
184 /// ```
185 pub fn with_view(mut self, view: &'a ViewState) -> Self {
186 self.view = Some(view);
187 self
188 }
189
190 /// Set detection options.
191 ///

Callers 3

newMethod · 0.45
with_builderMethod · 0.45

Calls

no outgoing calls

Tested by 1