Struct differential_dataflow::trace::implementations::ord::OrdValCursor
source · pub struct OrdValCursor<L: Layout>where
<L::Target as Update>::Key: Sized + Clone,
<L::Target as Update>::Val: Sized + Clone,{ /* private fields */ }
Expand description
A cursor for navigating a single layer.
Trait Implementations§
source§impl<L: Layout> Cursor for OrdValCursor<L>where
<L::Target as Update>::Key: Sized + Clone,
<L::Target as Update>::Val: Sized + Clone,
impl<L: Layout> Cursor for OrdValCursor<L>where <L::Target as Update>::Key: Sized + Clone, <L::Target as Update>::Val: Sized + Clone,
§type Storage = OrdValBatch<L>
type Storage = OrdValBatch<L>
Storage required by the cursor.
source§fn key<'a>(&self, storage: &'a OrdValBatch<L>) -> &'a Self::Key
fn key<'a>(&self, storage: &'a OrdValBatch<L>) -> &'a Self::Key
A reference to the current key. Asserts if invalid.
source§fn val<'a>(&self, storage: &'a OrdValBatch<L>) -> &'a Self::Val
fn val<'a>(&self, storage: &'a OrdValBatch<L>) -> &'a Self::Val
A reference to the current value. Asserts if invalid.
source§fn map_times<L2: FnMut(&Self::Time, &Self::Diff)>(
&mut self,
storage: &OrdValBatch<L>,
logic: L2
)
fn map_times<L2: FnMut(&Self::Time, &Self::Diff)>( &mut self, storage: &OrdValBatch<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: &OrdValBatch<L>) -> bool
fn key_valid(&self, storage: &OrdValBatch<L>) -> bool
Indicates if the current key is valid. Read more
source§fn val_valid(&self, storage: &OrdValBatch<L>) -> bool
fn val_valid(&self, storage: &OrdValBatch<L>) -> bool
Indicates if the current value is valid. Read more
source§fn step_key(&mut self, storage: &OrdValBatch<L>)
fn step_key(&mut self, storage: &OrdValBatch<L>)
Advances the cursor to the next key.
source§fn seek_key(&mut self, storage: &OrdValBatch<L>, key: &Self::Key)
fn seek_key(&mut self, storage: &OrdValBatch<L>, key: &Self::Key)
Advances the cursor to the specified key.
source§fn step_val(&mut self, storage: &OrdValBatch<L>)
fn step_val(&mut self, storage: &OrdValBatch<L>)
Advances the cursor to the next value.
source§fn seek_val(&mut self, storage: &OrdValBatch<L>, val: &Self::Val)
fn seek_val(&mut self, storage: &OrdValBatch<L>, val: &Self::Val)
Advances the cursor to the specified value.
source§fn rewind_keys(&mut self, storage: &OrdValBatch<L>)
fn rewind_keys(&mut self, storage: &OrdValBatch<L>)
Rewinds the cursor to the first key.
source§fn rewind_vals(&mut self, storage: &OrdValBatch<L>)
fn rewind_vals(&mut self, storage: &OrdValBatch<L>)
Rewinds the cursor to the first value for current key.
Auto Trait Implementations§
impl<L> RefUnwindSafe for OrdValCursor<L>where L: RefUnwindSafe, <L as Layout>::ValContainer: BatchContainer<Item = <<L as Layout>::Target as Update>::Val>,
impl<L> Send for OrdValCursor<L>where L: Send, <L as Layout>::ValContainer: BatchContainer<Item = <<L as Layout>::Target as Update>::Val>,
impl<L> Sync for OrdValCursor<L>where L: Sync, <L as Layout>::ValContainer: BatchContainer<Item = <<L as Layout>::Target as Update>::Val>,
impl<L> Unpin for OrdValCursor<L>where L: Unpin, <L as Layout>::ValContainer: BatchContainer<Item = <<L as Layout>::Target as Update>::Val>,
impl<L> UnwindSafe for OrdValCursor<L>where L: UnwindSafe, <L as Layout>::ValContainer: BatchContainer<Item = <<L as Layout>::Target as Update>::Val>,
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