pub struct IterAsChain<Iter: Iterator> {
pub iter: Iter,
pub val: Option<Iter::Item>,
}Expand description
This struct implements TrieNodeAlike for any iterator.
It can be used to construct a suffix automaton directly from a sequence.
Fields§
§iter: Iter§val: Option<Iter::Item>Trait Implementations§
Source§impl<Iter: Clone + Iterator> Clone for IterAsChain<Iter>
impl<Iter: Clone + Iterator> Clone for IterAsChain<Iter>
Source§fn clone(&self) -> IterAsChain<Iter>
fn clone(&self) -> IterAsChain<Iter>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Iter: IntoIterator> From<Iter> for IterAsChain<Iter::IntoIter>
impl<Iter: IntoIterator> From<Iter> for IterAsChain<Iter::IntoIter>
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,
fn dfs_travel<ErrorType, ExtraType, F: FnMut(TravelEvent<'_, &Self, ExtraType, Self::InnerType>) -> Result<ExtraType, ErrorType>>(
self,
callback: F,
) -> Result<(), ErrorType>where
Self: Clone,
Auto Trait Implementations§
impl<Iter> Freeze for IterAsChain<Iter>
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