Function regex_automata::util::wire::read_state_id_unchecked

source ยท
pub(crate) fn read_state_id_unchecked(slice: &[u8]) -> (StateID, usize)
Expand description

Reads a state ID from the given slice. If the slice has insufficient length, then this panics. Otherwise, the deserialized integer is assumed to be a valid state ID.

This also returns the number of bytes read.