Struct ruststep::ast::SingleMapDeserializer[][src]

pub struct SingleMapDeserializer<T> { /* fields omitted */ }
Expand description

Deserializer corresponding to a single-key map like { "A": [1.0, 2.0] }

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

The error type that can be returned if some error occurs during deserialization. Read more

The Visitor that will be used to deserialize the content of the enum variant. Read more

variant is called to identify which variant to deserialize. Read more

variant is called to identify which variant to deserialize. Read more

The error type that can be returned if some error occurs during deserialization. Read more

This returns Ok(Some(key)) for the next key in the map, or Ok(None) if there are no more remaining entries. Read more

This returns a Ok(value) for the next value in the map. Read more

fn next_entry_seed<K, V>(
    &mut self,
    kseed: K,
    vseed: V
) -> Result<Option<(<K as DeserializeSeed<'de>>::Value, <V as DeserializeSeed<'de>>::Value)>, Self::Error> where
    V: DeserializeSeed<'de>,
    K: DeserializeSeed<'de>, 

This returns Ok(Some((key, value))) for the next (key-value) pair in the map, or Ok(None) if there are no more remaining items. Read more

This returns Ok(Some(key)) for the next key in the map, or Ok(None) if there are no more remaining entries. Read more

This returns a Ok(value) for the next value in the map. Read more

fn next_entry<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where
    V: Deserialize<'de>,
    K: Deserialize<'de>, 

This returns Ok(Some((key, value))) for the next (key-value) pair in the map, or Ok(None) if there are no more remaining items. Read more

Returns the number of entries remaining in the map, if known.

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess. Read more

Called when deserializing a variant with no values. Read more

Called when deserializing a variant with a single value. Read more

Called when deserializing a tuple-like variant. Read more

Called when deserializing a struct-like variant. Read more

Called when deserializing a variant with a single value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.