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

Method new

atomic-core/src/record/workflow/crdt/builder/branch.rs:41–49  ·  view source on GitHub ↗

Creates a new line operation.

(branch_id: BranchId, operation: BranchOp)

Source from the content-addressed store, hash-verified

39impl LineOps {
40 /// Creates a new line operation.
41 pub fn new(branch_id: BranchId, operation: BranchOp) -> Self {
42 Self {
43 branch_id,
44 operation,
45 token_ops: Vec::new(),
46 old_line_num: None,
47 new_line_num: None,
48 }
49 }
50
51 /// Creates a line insert operation with leaf operations.
52 pub fn insert(branch_id: BranchId, after: Option<BranchId>, leaf_ops: Vec<LeafOp>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected