pub struct Activation<K = PolydatKernel> {
pub index: u64,
pub coords: Vec<(String, Value)>,
pub kernel: K,
pub cursor: Option<CursorSlice>,
}Expand description
One child scope of a traversal: the tuple it was activated for, a fresh kernel over the body’s program, and its cursor slice if the body declares a cursor.
The kernel is on the stream’s engine — the engine of the kernel
that opened the traversal — and is driven through the Kernel
trait. TraversalStream::activation_on names another engine for
a caller that wants one (for_traversal.md §5.2).
Fields§
§index: u64Position of this activation’s tuple in the traversal’s dispense order.
coords: Vec<(String, Value)>The tuple, in element order.
kernel: KA fresh kernel over the body’s shared program.
cursor: Option<CursorSlice>The narrowest cursor slice, when the body declares a cursor.
Implementations§
Source§impl<K> Activation<K>
impl<K> Activation<K>
Source§impl Activation<Box<dyn Kernel>>
impl Activation<Box<dyn Kernel>>
Source§impl Activation
impl Activation
Sourcepub fn cycle(&mut self, i: u64) -> &mut PolydatKernel
pub fn cycle(&mut self, i: u64) -> &mut PolydatKernel
Position the kernel at cycle i and return it ready to pull.
The body’s cycle coordinate is the local index; the cursor’s
ordinal slot receives the absolute ordinal.
Sourcepub fn for_each_cycle(&mut self, f: impl FnMut(u64, &mut PolydatKernel))
pub fn for_each_cycle(&mut self, f: impl FnMut(u64, &mut PolydatKernel))
Run f once per cycle, in order.
Trait Implementations§
Source§impl Debug for Activation
impl Debug for Activation
Auto Trait Implementations§
impl<K = PolydatKernel> !RefUnwindSafe for Activation<K>
impl<K = PolydatKernel> !UnwindSafe for Activation<K>
impl<K> Forget for Activation<K>
impl<K> Freeze for Activation<K>
impl<K> Move for Activation<K>
impl<K> Send for Activation<K>where
K: Send,
RawVecInner: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<Value>: Send,
BoxRaw<dyn ReflectedValue>: Send,
Arc<dyn Any + Send + Sync>: Send,
Arc<OrdinalSet>: Send,
Arc<PredicateForms>: Send,
Arc<RecordForms>: Send,
SliceArc<f32>: Send,
SliceArc<i32>: Send,
SliceArc<f64>: Send,
SliceArc<i64>: Send,
SliceArc<f16>: Send,
SliceArc<i16>: Send,
SliceArc<i8>: Send,
impl<K> Sync for Activation<K>where
K: Sync,
RawVecInner: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<Value>: Sync,
BoxRaw<dyn ReflectedValue>: Sync,
Arc<dyn Any + Send + Sync>: Sync,
Arc<OrdinalSet>: Sync,
Arc<PredicateForms>: Sync,
Arc<RecordForms>: Sync,
SliceArc<f32>: Sync,
SliceArc<i32>: Sync,
SliceArc<f64>: Sync,
SliceArc<i64>: Sync,
SliceArc<f16>: Sync,
SliceArc<i16>: Sync,
SliceArc<i8>: Sync,
impl<K> Unpin for Activation<K>where
K: Unpin,
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<Value>: Unpin,
Box<dyn ReflectedValue>: Unpin,
Arc<dyn Any + Send + Sync>: Unpin,
Arc<OrdinalSet>: Unpin,
Arc<PredicateForms>: Unpin,
Arc<RecordForms>: Unpin,
*const f32: Unpin,
*const i32: Unpin,
*const f64: Unpin,
*const i64: Unpin,
*const f16: Unpin,
*const i16: Unpin,
*const i8: Unpin,
impl<K> UnsafeUnpin for Activation<K>where
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
K: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more