Skip to main content

SequenceProducer

Type Alias SequenceProducer 

Source
pub type SequenceProducer = Arc<dyn Fn(&mut Cx, usize) -> Result<Option<Value>> + Send + Sync + 'static>;
Expand description

Element generator backing a LazySequence.

Called with the zero-based index of the next element; returns Some(value) to yield it or None to signal exhaustion.

Aliased Typeยง

pub struct SequenceProducer { /* private fields */ }