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