Struct differential_dataflow::trace::implementations::ord::OrdKeyCursor
source · pub struct OrdKeyCursor<L: Layout> { /* private fields */ }
Expand description
A cursor for navigating a single layer.
Trait Implementations§
source§impl<L: Layout> Cursor for OrdKeyCursor<L>where
<L::Target as Update>::Key: Sized,
impl<L: Layout> Cursor for OrdKeyCursor<L>where <L::Target as Update>::Key: Sized,
§type Storage = OrdKeyBatch<L>
type Storage = OrdKeyBatch<L>
Storage required by the cursor.
source§fn key<'a>(&self, storage: &'a OrdKeyBatch<L>) -> &'a Self::Key
fn key<'a>(&self, storage: &'a OrdKeyBatch<L>) -> &'a Self::Key
A reference to the current key. Asserts if invalid.
source§fn val<'a>(&self, _storage: &'a OrdKeyBatch<L>) -> &'a ()
fn val<'a>(&self, _storage: &'a OrdKeyBatch<L>) -> &'a ()
A reference to the current value. Asserts if invalid.
source§fn map_times<L2: FnMut(&Self::Time, &Self::Diff)>(
&mut self,
storage: &OrdKeyBatch<L>,
logic: L2
)
fn map_times<L2: FnMut(&Self::Time, &Self::Diff)>( &mut self, storage: &OrdKeyBatch<L>, logic: L2 )
Applies
logic
to each pair of time and difference. Intended for mutation of the
closure’s scope.source§fn key_valid(&self, storage: &OrdKeyBatch<L>) -> bool
fn key_valid(&self, storage: &OrdKeyBatch<L>) -> bool
Indicates if the current key is valid. Read more
source§fn val_valid(&self, _storage: &OrdKeyBatch<L>) -> bool
fn val_valid(&self, _storage: &OrdKeyBatch<L>) -> bool
Indicates if the current value is valid. Read more
source§fn step_key(&mut self, storage: &OrdKeyBatch<L>)
fn step_key(&mut self, storage: &OrdKeyBatch<L>)
Advances the cursor to the next key.
source§fn seek_key(&mut self, storage: &OrdKeyBatch<L>, key: &Self::Key)
fn seek_key(&mut self, storage: &OrdKeyBatch<L>, key: &Self::Key)
Advances the cursor to the specified key.
source§fn step_val(&mut self, _storage: &OrdKeyBatch<L>)
fn step_val(&mut self, _storage: &OrdKeyBatch<L>)
Advances the cursor to the next value.
source§fn seek_val(&mut self, _storage: &OrdKeyBatch<L>, _val: &())
fn seek_val(&mut self, _storage: &OrdKeyBatch<L>, _val: &())
Advances the cursor to the specified value.
source§fn rewind_keys(&mut self, storage: &OrdKeyBatch<L>)
fn rewind_keys(&mut self, storage: &OrdKeyBatch<L>)
Rewinds the cursor to the first key.
source§fn rewind_vals(&mut self, _storage: &OrdKeyBatch<L>)
fn rewind_vals(&mut self, _storage: &OrdKeyBatch<L>)
Rewinds the cursor to the first value for current key.
Auto Trait Implementations§
impl<L> RefUnwindSafe for OrdKeyCursor<L>
impl<L> Send for OrdKeyCursor<L>
impl<L> Sync for OrdKeyCursor<L>
impl<L> Unpin for OrdKeyCursor<L>
impl<L> UnwindSafe for OrdKeyCursor<L>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more