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

Function encode_leaf_state

atomic-core/src/crdt/tables.rs:429–434  ·  view source on GitHub ↗
(state: LeafState)

Source from the content-addressed store, hash-verified

427/// Encode a LeafState as a single byte.
428#[inline]
429pub fn encode_leaf_state(state: LeafState) -> u8 {
430 match state {
431 LeafState::Alive => leaf_state::ALIVE,
432 LeafState::Deleted => leaf_state::DELETED,
433 }
434}
435
436/// Decode a LeafState from a byte.
437#[inline]

Callers 1

encode_leaf_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected