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

Method token_kind

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

Returns the token kind for an Insert operation.

(&self)

Source from the content-addressed store, hash-verified

415
416 /// Returns the token kind for an Insert operation.
417 pub fn token_kind(&self) -> Option<TokenKind> {
418 match self {
419 LeafOp::Insert { kind, .. } => Some(*kind),
420 _ => None,
421 }
422 }
423
424 /// Returns the content length in bytes.
425 pub fn content_len(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected