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

Method with_builder

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

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,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected