Struct differential_dataflow::trace::layers::ordered::OrderedCursor
source · Expand description
A cursor with a child cursor that is updated as we move.
Fields
child: L::CursorThe cursor for the trie layer below this one.
Trait Implementations
sourceimpl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
impl<K: Ord, L: Trie> Cursor<OrderedLayer<K, L>> for OrderedCursor<L>
type Key = K
type Key = K
The type revealed by the cursor.
sourcefn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
fn key<'a>(&self, storage: &'a OrderedLayer<K, L>) -> &'a Self::Key
Reveals the current key.
sourcefn step(&mut self, storage: &OrderedLayer<K, L>)
fn step(&mut self, storage: &OrderedLayer<K, L>)
Advances the cursor by one element.
sourcefn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
fn seek(&mut self, storage: &OrderedLayer<K, L>, key: &Self::Key)
Advances the cursor until the location where
key would be expected.sourcefn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
fn valid(&self, _storage: &OrderedLayer<K, L>) -> bool
Returns
true if the cursor points at valid data. Returns false if the cursor is exhausted.sourcefn rewind(&mut self, storage: &OrderedLayer<K, L>)
fn rewind(&mut self, storage: &OrderedLayer<K, L>)
Rewinds the cursor to its initial state.
sourcefn reposition(&mut self, storage: &OrderedLayer<K, L>, lower: usize, upper: usize)
fn reposition(&mut self, storage: &OrderedLayer<K, L>, lower: usize, upper: usize)
Repositions the cursor to a different range of values.
Auto Trait Implementations
impl<L> RefUnwindSafe for OrderedCursor<L>where
<L as Trie>::Cursor: RefUnwindSafe,
impl<L> Send for OrderedCursor<L>where
<L as Trie>::Cursor: Send,
impl<L> Sync for OrderedCursor<L>where
<L as Trie>::Cursor: Sync,
impl<L> Unpin for OrderedCursor<L>where
<L as Trie>::Cursor: Unpin,
impl<L> UnwindSafe for OrderedCursor<L>where
<L as Trie>::Cursor: 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