pub fn pack_slice(self, buf: &[u8]) -> Result<Row, anyhow::Error> {
        let mut commands = vec![];
        let mut deserializer = serde_json::Deserializer::from_slice(buf);
        Collector(&mut commands).deserialize(&mut deserializer)?;
        deserializer.end()?;
        Ok(pack(self.row, &commands))
    }
/// Parses and packs a JSON-formatted byte slice.
///
/// Errors if the slice is not valid JSON or if any of the contained
/// integers cannot be represented exactly as an [`f64`].
Parses and packs a JSON-formatted byte slice.
Errors if the slice is not valid JSON or if any of the contained
integers cannot be represented exactly as an [`f64`].
Parses and packs a JSON - formatted byte slice . Errors if the slice is not valid JSON or if any of the contained integers cannot be represented exactly as an [ ` f64 ` ] .
pub fn pack_slice(self, buf: &[u8]) -> Result<Row, anyhow::Error> {
        let mut commands = vec![];
        let mut deserializer = serde_json::Deserializer::from_slice(buf);
        Collector(&mut commands).deserialize(&mut deserializer)?;
        deserializer.end()?;
        Ok(pack(self.row, &commands))
    }
pub fn pack_slice ( self , buf : & [ u8 ] ) -> Result < Row , anyhow :: Error > { let mut commands = vec ! [ ] ; let mut deserializer = serde_json :: Deserializer :: from_slice ( buf ) ; Collector ( & mut commands ) . deserialize ( & mut deserializer ) ? ; deserializer . end ( ) ? ; Ok ( pack ( self . row , & commands ) ) }
Parses and packs a JSON-formatted byte slice.
Parses and packs a JSON - formatted byte slice .
self
buf
&[u8]
self
buf
&[u8]