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