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

Method content

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

Returns the content for Insert or Replace operations.

(&self)

Source from the content-addressed store, hash-verified

406
407 /// Returns the content for Insert or Replace operations.
408 pub fn content(&self) -> Option<&[u8]> {
409 match self {
410 LeafOp::Insert { content, .. } => Some(content),
411 LeafOp::Replace { new_content, .. } => Some(new_content),
412 _ => None,
413 }
414 }
415
416 /// Returns the token kind for an Insert operation.
417 pub fn token_kind(&self) -> Option<TokenKind> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected