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

Method new

atomic-core/src/record/workflow/crdt/builder/trunk.rs:33–40  ·  view source on GitHub ↗

Creates a new file operation container.

(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>)

Source from the content-addressed store, hash-verified

31impl FileOps {
32 /// Creates a new file operation container.
33 pub fn new(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>) -> Self {
34 Self {
35 trunk_id,
36 path,
37 trunk_op,
38 line_ops: Vec::new(),
39 }
40 }
41
42 /// Creates a file creation operation.
43 pub fn create(trunk_id: TrunkId, path: String, encoding: Option<Encoding>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected