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

Method set_content_range

atomic-core/src/crdt/leaf.rs:235–238  ·  view source on GitHub ↗

Sets the content range.

(&mut self, range: Range<u32>)

Source from the content-addressed store, hash-verified

233
234 /// Sets the content range.
235 pub fn set_content_range(&mut self, range: Range<u32>) {
236 self.content_start = range.start;
237 self.content_end = range.end;
238 }
239
240 /// Marks the leaf as deleted.
241 pub fn delete(&mut self) {

Calls

no outgoing calls

Tested by 2

update_leaf_contentMethod · 0.36