fn deserialize_any<V>(self, visitor: V) -> Result<V::Value>
    where
        V: Visitor<'de>,
    {
        let mut buf = [0u8; 1];
        self.reader.read_exact(&mut buf)?;
        match buf[0] {
            b'+' => self.deserialize_str(visitor),      // SimpleString
            b'-' => self.deserialize_string(visitor),   // Error
            b':' => self.deserialize_i64(visitor),      // Integer
            b'$' => self.deserialize_byte_buf(visitor), // BulkString
            b'*' => self.deserialize_seq(visitor),      // Array
            _ => return Err(Error::Syntax),
        }
    }
// You see, this is a bit hacky...
You see, this is a bit hacky
You see this is a bit hacky
fn deserialize_any<V>(self, visitor: V) -> Result<V::Value>
    where
        V: Visitor<'de>,
    {
        let mut buf = [0u8; 1];
        self.reader.read_exact(&mut buf)?;
        match buf[0] {
            b'+' => self.deserialize_str(visitor),      // SimpleString
            b'-' => self.deserialize_string(visitor),   // Error
            b':' => self.deserialize_i64(visitor),      // Integer
            b'$' => self.deserialize_byte_buf(visitor), // BulkString
            b'*' => self.deserialize_seq(visitor),      // Array
            _ => return Err(Error::Syntax),
        }
    }
fn deserialize_any < V > ( self , visitor : V ) -> Result < V :: Value > where V : Visitor < ' de > , { let mut buf = [ 0u8 ; 1 ] ; self . reader . read_exact ( & mut buf ) ? ; match buf [ 0 ] { b'+' => self . deserialize_str ( visitor ) , // SimpleString b'-' => self . deserialize_string ( visitor ) , // Error b':' => self . deserialize_i64 ( visitor ) , // Integer b'$' => self . deserialize_byte_buf ( visitor ) , // BulkString b'*' => self . deserialize_seq ( visitor ) , // Array _ => return Err ( Error :: Syntax ) , } }
You see, this is a bit hacky...
You see this is a bit hacky ...
self
visitor
V