(byte: u8)
| 410 | /// Decode a BranchState from a byte. |
| 411 | #[inline] |
| 412 | pub 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. |
| 420 | pub mod leaf_state { |
no outgoing calls
no test coverage detected