pub trait ValueDecoder {
    type Item;
    fn decode_directly<R: Read>(data: &mut R) -> Result<Self::Item>;

    fn check_key_on_position<K: Into<String>, R: Read>(
        data: &mut R,
        key: K
    ) -> bool { ... }
fn decode_for_key<K: Into<String>, R: Read>(
        data: &mut R,
        key: K
    ) -> Result<Self::Item> { ... } }
Expand description

decoder methods for values (and primitive types). This is an extension trait.

Associated Types

the return value for decode_directly() and decode_for_key();

Required methods

decodes the value directly.

Provided methods

helper method to check, if the key is on position.

decodes the value for the given key.

Implementations on Foreign Types

Implementors