Struct oxischeme::value::ConsIterator [-]  [+] [src]

pub struct ConsIterator {
    // some fields omitted
}

An iterator which yields Ok for each value in a cons-list and finishes with None when the end of the list is reached (the scheme empty list value) or Err when iterating over an improper list.

For example: the list (1 2 3) would yield Ok(1), Ok(2), Ok(3), None, while the improper list (1 2 . 3) would yield Ok(1), Ok(2), Err.

Trait Implementations

impl Iterator for ConsIterator

type Item = Result<Value, ()>

fn next(&mut self) -> Option<Result<Value, ()>>

fn size_hint(&self) -> (usize, Option<usize>)

Derived Implementations

impl Copy for ConsIterator