Struct redfa::dfa::State
[−]
[src]
pub struct State<T, V> { pub by_char: BTreeMap<T, u32>, pub default: u32, pub value: V, }
A state in a DFA.
Fields
by_char: BTreeMap<T, u32>
Labelled transitions.
default: u32
The default transition (for values not in by_char
).
Note that by_char
is assumed not to cover the entire alphabet (T
).
value: V
A value associated with the state.
Trait Implementations
impl<T: Debug, V: Debug> Debug for State<T, V>
[src]
impl<T: Clone, V: Clone> Clone for State<T, V>
[src]
fn clone(&self) -> State<T, V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more