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§
- Event
Source Sequence - Sequence adapter that drains an
EventSourceinto sequence items. - List
Sequence - Sequence cursor that walks the spine of a kernel list value.
- Sequence
Item - 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.