[−][src]Struct serde_hjson::de::Deserializer
A structure that deserializes Hjson into Rust values.
Implementations
impl<Iter> Deserializer<Iter> where
Iter: Iterator<Item = u8>,
[src]
Iter: Iterator<Item = u8>,
pub fn new(rdr: Iter) -> Deserializer<Iter>
[src]
Creates the Hjson parser from an std::iter::Iterator
.
pub fn new_for_root(rdr: Iter) -> Deserializer<Iter>
[src]
Creates the Hjson parser from an std::iter::Iterator
.
pub fn end(&mut self) -> Result<()>
[src]
The Deserializer::end
method should be called after a value has been fully deserialized.
This allows the Deserializer
to validate that the input stream is at the end or that it
only has trailing whitespace.
Trait Implementations
impl<Iter> Deserializer for Deserializer<Iter> where
Iter: Iterator<Item = u8>,
[src]
Iter: Iterator<Item = u8>,
type Error = Error
The error type that can be returned if some error occurs during deserialization.
fn deserialize<V>(&mut self, visitor: V) -> Result<V::Value> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_option<V>(&mut self, visitor: V) -> Result<V::Value> where
V: Visitor,
[src]
V: Visitor,
Parses a null
as a None, and any other values as a Some(...)
.
fn deserialize_newtype_struct<V>(
&mut self,
_name: &str,
visitor: V
) -> Result<V::Value> where
V: Visitor,
[src]
&mut self,
_name: &str,
visitor: V
) -> Result<V::Value> where
V: Visitor,
Parses a newtype struct as the underlying value.
fn deserialize_bool<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_usize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_u8<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_u16<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_u32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_u64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_isize<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_i8<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_i16<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_i32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_i64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_f32<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_f64<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_char<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_str<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_string<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_unit<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_seq<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_seq_fixed_size<V>(
&mut self,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_map<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
V: Visitor,
fn deserialize_unit_struct<V>(
&mut self,
_: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
_: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_tuple_struct<V>(
&mut self,
_: &'static str,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
_: &'static str,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_struct<V>(
&mut self,
_: &'static str,
_: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
_: &'static str,
_: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_struct_field<V>(
&mut self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_tuple<V>(
&mut self,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
_: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
fn deserialize_enum<V>(
&mut self,
_: &'static str,
_: &'static [&'static str],
_visitor: V
) -> Result<V::Value, Self::Error> where
V: EnumVisitor,
[src]
&mut self,
_: &'static str,
_: &'static [&'static str],
_visitor: V
) -> Result<V::Value, Self::Error> where
V: EnumVisitor,
fn deserialize_ignored_any<V>(
&mut self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
[src]
&mut self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor,
impl<Iter> VariantVisitor for Deserializer<Iter> where
Iter: Iterator<Item = u8>,
[src]
Iter: Iterator<Item = u8>,
type Error = Error
The error type that can be returned if some error occurs during deserialization.
fn visit_variant<V>(&mut self) -> Result<V> where
V: Deserialize,
[src]
V: Deserialize,
fn visit_unit(&mut self) -> Result<()>
[src]
fn visit_newtype<T>(&mut self) -> Result<T> where
T: Deserialize,
[src]
T: Deserialize,
fn visit_tuple<V>(&mut self, _len: usize, visitor: V) -> Result<V::Value> where
V: Visitor,
[src]
V: Visitor,
fn visit_struct<V>(
&mut self,
_fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor,
[src]
&mut self,
_fields: &'static [&'static str],
visitor: V
) -> Result<V::Value> where
V: Visitor,
Auto Trait Implementations
impl<Iter> RefUnwindSafe for Deserializer<Iter> where
Iter: RefUnwindSafe,
Iter: RefUnwindSafe,
impl<Iter> Send for Deserializer<Iter> where
Iter: Send,
Iter: Send,
impl<Iter> Sync for Deserializer<Iter> where
Iter: Sync,
Iter: Sync,
impl<Iter> Unpin for Deserializer<Iter> where
Iter: Unpin,
Iter: Unpin,
impl<Iter> UnwindSafe for Deserializer<Iter> where
Iter: UnwindSafe,
Iter: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,