Struct general_sam::sam::GeneralSAMState
source · pub struct GeneralSAMState<'s, T: Ord + Clone> {
pub sam: &'s GeneralSAM<T>,
pub node_id: usize,
}Fields§
§sam: &'s GeneralSAM<T>§node_id: usizeImplementations§
source§impl<'s> GeneralSAMState<'s, u8>
impl<'s> GeneralSAMState<'s, u8>
pub fn feed_bytes(self, seq: &'s str) -> Self
source§impl GeneralSAMState<'_, char>
impl GeneralSAMState<'_, char>
pub fn feed_chars(self, seq: &str) -> Self
source§impl<T: Ord + Clone> GeneralSAMState<'_, T>
impl<T: Ord + Clone> GeneralSAMState<'_, T>
pub fn is_nil(&self) -> bool
pub fn is_root(&self) -> bool
pub fn is_accepting(&self) -> bool
pub fn get_node(&self) -> Option<&GeneralSAMNode<T>>
pub fn goto_suffix_parent(&mut self)
pub fn goto(&mut self, t: &T)
pub fn feed<Seq: IntoIterator<Item = T>>(self, seq: Seq) -> Self
pub fn feed_iter<Iter: Iterator<Item = T>>(self, iter: Iter) -> Self
source§impl<'s, T: Ord + Clone> GeneralSAMState<'s, T>
impl<'s, T: Ord + Clone> GeneralSAMState<'s, T>
pub fn feed_ref<Seq: IntoIterator<Item = &'s T>>(self, seq: Seq) -> Self
pub fn feed_ref_iter<Iter: Iterator<Item = &'s T>>(self, iter: Iter) -> Self
source§impl<'s, T: Ord + Clone> GeneralSAMState<'s, T>
impl<'s, T: Ord + Clone> GeneralSAMState<'s, T>
pub fn dfs_along<TN: TrieNodeAlike<InnerType = T> + Clone, ExtraType, ErrorType, F: FnMut(TravelEvent<'_, (&GeneralSAMState<'_, T>, &TN), ErrorType, TN::InnerType>) -> Result<ErrorType, ExtraType>>( &self, trie_node: TN, callback: F ) -> Result<(), ExtraType>
pub fn bfs_along<TN: TrieNodeAlike<InnerType = T> + Clone, ExtraType, ErrorType, F: FnMut(TravelEvent<'_, (&GeneralSAMState<'_, T>, &TN), ErrorType, TN::InnerType>) -> Result<ErrorType, ExtraType>>( &self, trie_node: TN, callback: F ) -> Result<(), ExtraType>
Trait Implementations§
Auto Trait Implementations§
impl<'s, T> RefUnwindSafe for GeneralSAMState<'s, T>where T: RefUnwindSafe,
impl<'s, T> Send for GeneralSAMState<'s, T>where T: Sync,
impl<'s, T> Sync for GeneralSAMState<'s, T>where T: Sync,
impl<'s, T> Unpin for GeneralSAMState<'s, T>
impl<'s, T> UnwindSafe for GeneralSAMState<'s, T>where T: RefUnwindSafe,
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