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

Function decode_branch_state

atomic-core/src/crdt/tables.rs:412–417  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

410/// Decode a BranchState from a byte.
411#[inline]
412pub fn decode_branch_state(byte: u8) -> BranchState {
413 match byte {
414 branch_state::DELETED => BranchState::Deleted,
415 _ => BranchState::Alive, // Default to alive
416 }
417}
418
419/// State byte constants for LeafState.
420pub mod leaf_state {

Callers 1

decode_branch_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected