Struct general_sam::trie_alike::IterAsChain
source · pub struct IterAsChain<Iter: Iterator> { /* private fields */ }Expand description
This struct implements TrieNodeAlike for any iterator.
It can be used to construct a suffix automaton directly from a sequence.
Trait Implementations§
source§impl<Iter: Iterator> From<Iter> for IterAsChain<Iter>
impl<Iter: Iterator> From<Iter> for IterAsChain<Iter>
source§impl<Iter: Iterator> TrieNodeAlike for IterAsChain<Iter>
impl<Iter: Iterator> TrieNodeAlike for IterAsChain<Iter>
type InnerType = <Iter as Iterator>::Item
type NextStateIter = IterAsChainNextStateIter<Iter>
fn is_accepting(&self) -> bool
fn next_states(self) -> Self::NextStateIter
fn bfs_travel<ErrorType, ExtraType, F: FnMut(TravelEvent<'_, &Self, ExtraType, Self::InnerType>) -> Result<ExtraType, ErrorType>>(
self,
callback: F
) -> Result<(), ErrorType>where
Self: Sized,
Auto Trait Implementations§
impl<Iter> RefUnwindSafe for IterAsChain<Iter>
impl<Iter> Send for IterAsChain<Iter>
impl<Iter> Sync for IterAsChain<Iter>
impl<Iter> Unpin for IterAsChain<Iter>
impl<Iter> UnwindSafe for IterAsChain<Iter>
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