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

Method reset

atomic-core/src/record/workflow/graph_op/builder.rs:341–347  ·  view source on GitHub ↗

Reset the builder for reuse with a new file. # Arguments `path` - Path of the new file

(&mut self, path: impl Into<String>)

Source from the content-addressed store, hash-verified

339 ///
340 /// * `path` - Path of the new file
341 pub fn reset(&mut self, path: impl Into<String>) {
342 self.path = path.into();
343 self.pending.clear();
344 self.content_position = 0;
345 self.old_line = 0;
346 self.new_line = 0;
347 }
348}

Callers 1

test_builder_resetFunction · 0.80

Calls 1

clearMethod · 0.65

Tested by 1

test_builder_resetFunction · 0.64