Trait ValueIterator

Source
pub trait ValueIterator:
    Debug
    + Send
    + Sync {
    // Required method
    fn next(&self, vm: &mut dyn Vm<'_>) -> SourceResult<Option<Value>>;

    // Provided method
    fn nth(&self, vm: &mut dyn Vm<'_>, n: usize) -> SourceResult<Option<Value>> { ... }
}

Required Methods§

Source

fn next(&self, vm: &mut dyn Vm<'_>) -> SourceResult<Option<Value>>

Compute the next element of the iterator

Provided Methods§

Source

fn nth(&self, vm: &mut dyn Vm<'_>, n: usize) -> SourceResult<Option<Value>>

Compute the nth element of the iterator.

Implementors§