Struct differential_dataflow::trace::cursor::cursor_pair::CursorPair
[−]
[src]
pub struct CursorPair<C1, C2> { /* fields omitted */ }
A cursor over the combined updates of two different cursors.
A CursorPair
wraps two cursors over the same types of updates, and provides navigation
through their merged updates.
Trait Implementations
impl<K, V, T, R, C1, C2> Cursor<K, V, T, R> for CursorPair<C1, C2> where
K: Ord,
V: Ord,
C1: Cursor<K, V, T, R>,
C2: Cursor<K, V, T, R>,
[src]
K: Ord,
V: Ord,
C1: Cursor<K, V, T, R>,
C2: Cursor<K, V, T, R>,
type Storage = (C1::Storage, C2::Storage)
Type the cursor addresses data in.
fn key_valid(&self, storage: &Self::Storage) -> bool
[src]
Indicates if the current key is valid. Read more
fn val_valid(&self, storage: &Self::Storage) -> bool
[src]
Indicates if the current value is valid. Read more
fn key<'a>(&self, storage: &'a Self::Storage) -> &'a K
[src]
A reference to the current key. Asserts if invalid.
fn val<'a>(&self, storage: &'a Self::Storage) -> &'a V
[src]
A reference to the current value. Asserts if invalid.
fn map_times<L: FnMut(&T, R)>(&mut self, storage: &Self::Storage, logic: L)
[src]
Applies logic
to each pair of time and difference. Intended for mutation of the closure's scope. Read more
fn step_key(&mut self, storage: &Self::Storage)
[src]
Advances the cursor to the next key. Indicates if the key is valid.
fn seek_key(&mut self, storage: &Self::Storage, key: &K)
[src]
Advances the cursor to the specified key. Indicates if the key is valid.
fn step_val(&mut self, storage: &Self::Storage)
[src]
Advances the cursor to the next value. Indicates if the value is valid.
fn seek_val(&mut self, storage: &Self::Storage, val: &V)
[src]
Advances the cursor to the specified value. Indicates if the value is valid.
fn rewind_keys(&mut self, storage: &Self::Storage)
[src]
Rewinds the cursor to the first key.
fn rewind_vals(&mut self, storage: &Self::Storage)
[src]
Rewinds the cursor to the first value for current key.
fn get_key<'a>(&self, storage: &'a Self::Storage) -> Option<&'a K>
[src]
Returns a reference to the current key, if valid.
fn get_val<'a>(&self, storage: &'a Self::Storage) -> Option<&'a V>
[src]
Returns a reference to the current value, if valid.
Auto Trait Implementations
impl<C1, C2> Send for CursorPair<C1, C2> where
C1: Send,
C2: Send,
C1: Send,
C2: Send,
impl<C1, C2> Sync for CursorPair<C1, C2> where
C1: Sync,
C2: Sync,
C1: Sync,
C2: Sync,