Struct strason::parser::Parser [] [src]

pub struct Parser<I: Iterator<Item=Result<u8>>> {
    // some fields omitted
}

A structure capable of parsing binary ASCII data into a "JSON object", which is simply a tree of strings. Further parsing should be done by other layers.

Methods

impl<I: Iterator<Item=Result<u8>>> Parser<I>
[src]

fn new(iter: I) -> Parser<I>

Construct a new parser, given a byte iterator as input

fn parse(&mut self) -> Result<JsonError>

Consume the internal iterator and produce a Json object