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

Method replace

atomic-core/src/record/workflow/graph_op/pending.rs:131–139  ·  view source on GitHub ↗
(old_start: usize, old_len: usize, new_start: usize, new_len: usize)

Source from the content-addressed store, hash-verified

129 /// ```
130 #[must_use]
131 pub fn replace(old_start: usize, old_len: usize, new_start: usize, new_len: usize) -> Self {
132 Self {
133 kind: PendingChangeKind::Replace,
134 old_start,
135 old_len,
136 new_start,
137 new_len,
138 }
139 }
140
141 /// Create from a diff replace operation's parameters.
142 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected