(state: TrunkState)
| 370 | /// Encode a TrunkState as a single byte. |
| 371 | #[inline] |
| 372 | pub fn encode_trunk_state(state: TrunkState) -> u8 { |
| 373 | match state { |
| 374 | TrunkState::Alive => trunk_state::ALIVE, |
| 375 | TrunkState::Deleted => trunk_state::DELETED, |
| 376 | TrunkState::Zombie => trunk_state::ZOMBIE, |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /// Decode a TrunkState from a byte. |
| 381 | /// |
no outgoing calls
no test coverage detected