Struct re_set::StateMachine
source · pub struct StateMachine {
pub steps: BTreeMap<usize, Vec<StepCase>>,
pub ends: HashMap<usize, usize>,
}
Expand description
A state machine that can be used to match a regex.
Fields§
§steps: BTreeMap<usize, Vec<StepCase>>
A list of steps, each containing a list of cases.
ends: HashMap<usize, usize>
A map of steps to the pattern index they should return.
Implementations§
source§impl StateMachine
impl StateMachine
sourcepub fn extend_steps(&mut self)
pub fn extend_steps(&mut self)
Panics
Panics if the state machine is empty.
source§impl StateMachine
impl StateMachine
Trait Implementations§
source§impl Debug for StateMachine
impl Debug for StateMachine
source§impl Default for StateMachine
impl Default for StateMachine
source§fn default() -> StateMachine
fn default() -> StateMachine
Returns the “default value” for a type. Read more