pub struct AnythingGoes;Trait Implementations§
Source§impl Recognizer for AnythingGoes
impl Recognizer for AnythingGoes
Source§fn collapse(&mut self)
fn collapse(&mut self)
“Collapse” the stack so that it consists only of its former
top element.
X = stack.top(); stack.empty(); stack.push(X)
Source§fn trie_finished(&mut self)
fn trie_finished(&mut self)
Called when iteration over the trie is finished
Stack has exactly one element then, except when iteration started from non-root node.
In that case, the stack may have more than one element, and trie_finished() needs to pop the excessive elements.
Source§fn try_push_byte(&mut self, _byte: u8) -> bool
fn try_push_byte(&mut self, _byte: u8) -> bool
This combines
push_byte and byte_allowed into one function for performance.Source§fn byte_allowed(&mut self, byte: u8) -> bool
fn byte_allowed(&mut self, byte: u8) -> bool
check if stack.top() transitions via byte to a viable state
Source§fn trie_started(&mut self, _dbg_lbl: &str)
fn trie_started(&mut self, _dbg_lbl: &str)
Called when iteration over the trie is started
Source§fn get_error(&mut self) -> Option<String>
fn get_error(&mut self) -> Option<String>
Check if there are any errors to be reported to the user.
fn save_stats(&mut self, _nodes_walked: usize)
Auto Trait Implementations§
impl Freeze for AnythingGoes
impl RefUnwindSafe for AnythingGoes
impl Send for AnythingGoes
impl Sync for AnythingGoes
impl Unpin for AnythingGoes
impl UnwindSafe for AnythingGoes
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