pub fn deserialize_enum_variant(bytes: &[u8]) -> Result<u32>Expand description
Read an enum variant index without deserializing its body.
This supports bounded admission decisions that must inspect a Rings postcard envelope before allocating its potentially large variant payload.