Struct serde::json::de::Deserializer [] [src]

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

Methods

impl<Iter> Deserializer<Iter> where Iter: Iterator<Item=Result<u8>>

fn new(rdr: Iter) -> Result<Deserializer<Iter>, Error>

Creates the JSON parser from an std::iter::Iterator.

fn end(&mut self) -> Result<(), Error>

Trait Implementations

impl<Iter> Deserializer for Deserializer<Iter> where Iter: Iterator<Item=Result<u8>>

type Error = Error

fn visit<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

fn visit_option<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

fn visit_enum<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Error> where V: EnumVisitor

fn visit_seq<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_map<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_unit<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_seq<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_map<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

impl<Iter> VariantVisitor for Deserializer<Iter> where Iter: Iterator<Item=Result<u8>>

type Error = Error

fn visit_variant<V>(&mut self) -> Result<V, Error> where V: Deserialize

fn visit_unit(&mut self) -> Result<(), Error>

fn visit_seq<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

fn visit_map<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor