pub struct AcNode {
pub children: HashMap<u8, usize>,
pub fail: usize,
pub output: Vec<usize>,
}Expand description
A node in the Aho-Corasick automaton.
Fields§
§children: HashMap<u8, usize>§fail: usize§output: Vec<usize>Output: indices into the pattern list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcNode
impl RefUnwindSafe for AcNode
impl Send for AcNode
impl Sync for AcNode
impl Unpin for AcNode
impl UnsafeUnpin for AcNode
impl UnwindSafe for AcNode
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