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

Method new

atomic-core/src/merge/engine.rs:95–97  ·  view source on GitHub ↗

Create a new engine backed by the given transaction and change store.

(txn: &'a T, changes: &'a C)

Source from the content-addressed store, hash-verified

93impl<'a, T: GraphTxnT, C: ChangeStore> SemanticMergeEngine<'a, T, C> {
94 /// Create a new engine backed by the given transaction and change store.
95 pub fn new(txn: &'a T, changes: &'a C) -> Self {
96 Self { txn, changes }
97 }
98
99 /// Return a reference to the underlying transaction.
100 pub fn txn(&self) -> &'a T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected