// Deserialization of compound types like sequences and maps happens by
// passing the visitor an "Access" object that gives it the ability to
// iterate through the data contained in the sequence.
Deserialization of compound types like sequences and maps happens by
passing the visitor an "Access" object that gives it the ability to
iterate through the data contained in the sequence.
Deserialization of compound types like sequences and maps happens by passing the visitor an " Access " object that gives it the ability to iterate through the data contained in the sequence .
fn deserialize_seq<V>(mut self, visitor: V) -> Result<V::Value>
    where
        V: Visitor<'de>,
    {
        // read tag
        let tag = self.read_tag()?;
        assert_eq!(tag, self.tag, "tag missmatch {} vs {}", tag, self.tag);
        // read len
        let len = self.read_len()?;
        // calculate actual payload len
        let payload_len = len - TLV_HEADER_SIZE;
        let value = visitor.visit_seq(BytesReader::new(&mut self, payload_len))?;
        Ok(value)
    }
fn deserialize_seq < V > ( mut self , visitor : V ) -> Result < V :: Value > where V : Visitor < ' de > , { // read tag let tag = self . read_tag ( ) ? ; assert_eq ! ( tag self tag " " tag self tag ) ; // read len let len = self . read_len ( ) ? ; // calculate actual payload len let payload_len = len - TLV_HEADER_SIZE ; let value = visitor . visit_seq ( BytesReader :: new ( & mut self , payload_len ) ) ? ; Ok ( value ) }
Deserialization of compound types like sequences and maps happens by
passing the visitor an "Access" object that gives it the ability to
iterate through the data contained in the sequence.
Deserialization of compound types like sequences and maps happens by passing the visitor an " Access " object that gives it the ability to iterate through the data contained in the sequence .
mut self
visitor
V