Skip to main content

Module seq

Module seq 

Source
Expand description

The Sequence contract: pull-based iteration over runtime values.

The kernel defines the sequence protocol and its next/close/peek surface, including bridging events into sequence items; libraries supply the concrete sequence sources.

Structs§

EventSourceSequence
Sequence adapter that drains an EventSource into sequence items.
ListSequence
Sequence cursor that walks the spine of a kernel list value.
SequenceItem
One item produced by a sequence: a value plus its clock ticks.

Traits§

Sequence
Pull-based iteration protocol over runtime values.

Functions§

seq_close
Closes a sequence.
seq_close_value
Closes a value that is a sequence or a stream.
seq_is_done
Reports whether a sequence is exhausted.
seq_next
Pulls the next item from a sequence.
seq_next_value
Pulls the next item from a value that is a sequence or a stream.
seq_peek
Peeks the next item of a sequence without consuming it.
sequence_item_from_event
Maps an event into a sequence item, or Ok(None) for non-payload events; failure events are surfaced as errors.
sequence_item_value
Projects a sequence item to a value, wrapping it in a payload/ticks table when ticks are present.