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

Function decode_leaf_state

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

Source from the content-addressed store, hash-verified

436/// Decode a LeafState from a byte.
437#[inline]
438pub fn decode_leaf_state(byte: u8) -> LeafState {
439 match byte {
440 leaf_state::DELETED => LeafState::Deleted,
441 _ => LeafState::Alive,
442 }
443}
444
445// TokenKind Encoding/Decoding (1 byte)
446

Callers 1

decode_leaf_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected