(state: BranchState)
| 401 | /// Encode a BranchState as a single byte. |
| 402 | #[inline] |
| 403 | pub 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] |
no outgoing calls
no test coverage detected