pub struct State {
pub len: usize,
pub link: Option<usize>,
pub next: BTreeMap<char, usize>,
}Expand description
State of a suffix automaton.
Fields§
§len: usizeLength of the longest substring represented by this state.
link: Option<usize>Suffix link: points to the state representing the longest proper suffix of this state’s substrings.
next: BTreeMap<char, usize>Transitions keyed by character.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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