Create a recording context with a pre-configured builder. Use this when you need to customize the builder before recording. # Arguments `txn` - Read-only pristine transaction `view` - The view to record changes to `working_copy` - Working copy for file access `change_store` - Change store for content retrieval `builder` - Pre-configured record builder # Example ```rust,ignore let mut builder
(
txn: &'a T,
view: &'a ViewState,
working_copy: &'a W,
change_store: &'a C,
builder: RecordBuilder,
)
| 394 | /// ); |
| 395 | /// ``` |
| 396 | pub fn with_builder( |
| 397 | txn: &'a T, |
| 398 | view: &'a ViewState, |
| 399 | working_copy: &'a W, |
| 400 | change_store: &'a C, |
| 401 | builder: RecordBuilder, |
| 402 | ) -> Self { |
| 403 | Self { |
| 404 | detect: DetectContext::new(txn, working_copy, change_store).with_view(view), |
| 405 | builder, |
| 406 | view, |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | /// Set detection options. |
| 411 | /// |