Trait backtracking_iterator::Walkback
source · pub trait Walkback<'history>: Iterator {
type RefPoint;
fn get_ref_point(&self) -> Self::RefPoint;
}
Expand description
An iterator which walks back over a history
Required Associated Types
Required Methods
sourcefn get_ref_point(&self) -> Self::RefPoint
fn get_ref_point(&self) -> Self::RefPoint
Yield a reference to the current point in the history - the current position is before the most-recently-yielded element. This reference must be valid in the parent BacktrackingIterator, and must remain valid for as long as the walkback exists