Struct differential_dataflow::trace::wrappers::enter::CursorEnter
source · pub struct CursorEnter<C, TInner> { /* private fields */ }
Expand description
Wrapper to provide cursor to nested scope.
Trait Implementations§
source§impl<C, TInner> Cursor for CursorEnter<C, TInner>
impl<C, TInner> Cursor for CursorEnter<C, TInner>
§type TimeGat<'a> = &'a TInner
type TimeGat<'a> = &'a TInner
Borrowed form of timestamp.
source§fn key_valid(&self, storage: &Self::Storage) -> bool
fn key_valid(&self, storage: &Self::Storage) -> bool
Indicates if the current key is valid. Read more
source§fn val_valid(&self, storage: &Self::Storage) -> bool
fn val_valid(&self, storage: &Self::Storage) -> bool
Indicates if the current value is valid. Read more
source§fn key<'a>(&self, storage: &'a Self::Storage) -> Self::Key<'a>
fn key<'a>(&self, storage: &'a Self::Storage) -> Self::Key<'a>
A reference to the current key. Asserts if invalid.
source§fn val<'a>(&self, storage: &'a Self::Storage) -> Self::Val<'a>
fn val<'a>(&self, storage: &'a Self::Storage) -> Self::Val<'a>
A reference to the current value. Asserts if invalid.
source§fn map_times<L: FnMut(&TInner, Self::DiffGat<'_>)>(
&mut self,
storage: &Self::Storage,
logic: L,
)
fn map_times<L: FnMut(&TInner, Self::DiffGat<'_>)>( &mut self, storage: &Self::Storage, logic: L, )
Applies
logic
to each pair of time and difference. Intended for mutation of the
closure’s scope.source§fn seek_key(&mut self, storage: &Self::Storage, key: Self::Key<'_>)
fn seek_key(&mut self, storage: &Self::Storage, key: Self::Key<'_>)
Advances the cursor to the specified key.
source§fn seek_val(&mut self, storage: &Self::Storage, val: Self::Val<'_>)
fn seek_val(&mut self, storage: &Self::Storage, val: Self::Val<'_>)
Advances the cursor to the specified value.
source§fn rewind_keys(&mut self, storage: &Self::Storage)
fn rewind_keys(&mut self, storage: &Self::Storage)
Rewinds the cursor to the first key.
source§fn rewind_vals(&mut self, storage: &Self::Storage)
fn rewind_vals(&mut self, storage: &Self::Storage)
Rewinds the cursor to the first value for current key.
Auto Trait Implementations§
impl<C, TInner> Freeze for CursorEnter<C, TInner>where
C: Freeze,
impl<C, TInner> RefUnwindSafe for CursorEnter<C, TInner>where
C: RefUnwindSafe,
TInner: RefUnwindSafe,
impl<C, TInner> Send for CursorEnter<C, TInner>
impl<C, TInner> Sync for CursorEnter<C, TInner>
impl<C, TInner> Unpin for CursorEnter<C, TInner>
impl<C, TInner> UnwindSafe for CursorEnter<C, TInner>where
C: UnwindSafe,
TInner: UnwindSafe,
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
source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.