pub struct State<T, V> {
pub by_char: BTreeMap<T, u32>,
pub default: u32,
pub value: V,
}
Expand description
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§
Auto Trait Implementations§
impl<T, V> RefUnwindSafe for State<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for State<T, V>
impl<T, V> Sync for State<T, V>
impl<T, V> Unpin for State<T, V>where
V: Unpin,
impl<T, V> UnwindSafe for State<T, V>where
T: RefUnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more