pub struct BacktrackingRecorder<Iter>where
Iter: Iterator,{ /* private fields */ }
Expand description
A wrapper around an existing iterator to give it a historical representation with the ability to then produce copying and referencing backtracking iterators on the history
Implementations
sourceimpl<Iter> BacktrackingRecorder<Iter>where
Iter: Iterator,
impl<Iter> BacktrackingRecorder<Iter>where
Iter: Iterator,
pub fn referencing<'record>(
&'record mut self
) -> ReferencingBacktrackingIterator<'record, Iter> ⓘ
pub fn copying<'record>(
&'record mut self
) -> CopyingBacktrackingIterator<'record, Iter> ⓘwhere
Iter::Item: Clone,
Trait Implementations
sourceimpl<Iter> Record for BacktrackingRecorder<Iter>where
Iter: Iterator,
impl<Iter> Record for BacktrackingRecorder<Iter>where
Iter: Iterator,
sourcefn get_ref_point(&self) -> usize
fn get_ref_point(&self) -> usize
Yield a reference to the current point in the history
This reference must be valid for as long as the current
point remains in the history Read more
sourcefn forget_before(&mut self, position: usize)
fn forget_before(&mut self, position: usize)
Eliminate all the values before the given reference point from the history
Auto Trait Implementations
impl<Iter> RefUnwindSafe for BacktrackingRecorder<Iter>where
Iter: RefUnwindSafe,
<Iter as Iterator>::Item: RefUnwindSafe,
impl<Iter> Send for BacktrackingRecorder<Iter>where
Iter: Send,
<Iter as Iterator>::Item: Send,
impl<Iter> Sync for BacktrackingRecorder<Iter>where
Iter: Sync,
<Iter as Iterator>::Item: Sync,
impl<Iter> Unpin for BacktrackingRecorder<Iter>where
Iter: Unpin,
<Iter as Iterator>::Item: Unpin,
impl<Iter> UnwindSafe for BacktrackingRecorder<Iter>where
Iter: UnwindSafe,
<Iter as Iterator>::Item: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more