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

Function encode_branch_state

atomic-core/src/crdt/tables.rs:403–408  ·  view source on GitHub ↗
(state: BranchState)

Source from the content-addressed store, hash-verified

401/// Encode a BranchState as a single byte.
402#[inline]
403pub fn encode_branch_state(state: BranchState) -> u8 {
404 match state {
405 BranchState::Alive => branch_state::ALIVE,
406 BranchState::Deleted => branch_state::DELETED,
407 }
408}
409
410/// Decode a BranchState from a byte.
411#[inline]

Callers 1

encode_branch_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected