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

Method insert_after

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

Returns the insertion point for an Insert operation.

(&self)

Source from the content-addressed store, hash-verified

398
399 /// Returns the insertion point for an Insert operation.
400 pub fn insert_after(&self) -> Option<Option<LeafId>> {
401 match self {
402 LeafOp::Insert { after, .. } => Some(*after),
403 _ => None,
404 }
405 }
406
407 /// Returns the content for Insert or Replace operations.
408 pub fn content(&self) -> Option<&[u8]> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected