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

Method alloc_leaf

atomic-core/src/diff/semantic_to_crdt.rs:261–265  ·  view source on GitHub ↗

Allocate a new leaf ID.

(&mut self)

Source from the content-addressed store, hash-verified

259
260 /// Allocate a new leaf ID.
261 fn alloc_leaf(&mut self) -> LeafId {
262 let id = LeafId::new(self.change_id, self.next_leaf);
263 self.next_leaf += 1;
264 id
265 }
266}
267
268// Semantic to CRDT Converter

Callers 2

convert_token_changesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected