(state: LeafState)
| 427 | /// Encode a LeafState as a single byte. |
| 428 | #[inline] |
| 429 | pub fn encode_leaf_state(state: LeafState) -> u8 { |
| 430 | match state { |
| 431 | LeafState::Alive => leaf_state::ALIVE, |
| 432 | LeafState::Deleted => leaf_state::DELETED, |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | /// Decode a LeafState from a byte. |
| 437 | #[inline] |