pub fn to_writer<W>(&self, writer: W) -> Result<(), anyhow::Error>
    where
        W: io::Write,
    {
        serde_json::to_writer(writer, &JsonbDatum(self.datum))?;
        Ok(())
    }
/// Serializes the JSON value into the given IO stream.
///
/// # Panics
///
/// Panics if this `JsonbRef` was constructed with a [`Datum`] that is not
/// representable as JSON.
Serializes the JSON value into the given IO stream.
Serializes the JSON value into the given IO stream .
pub fn to_writer<W>(&self, writer: W) -> Result<(), anyhow::Error>
    where
        W: io::Write,
    {
        serde_json::to_writer(writer, &JsonbDatum(self.datum))?;
        Ok(())
    }
pub fn to_writer < W > ( & self , writer : W ) -> Result < ( ) , anyhow :: Error > where W : io :: Write , { serde_json :: to_writer ( writer , & JsonbDatum ( self . datum ) ) ? ; Ok ( ( ) ) }
Serializes the JSON value into the given IO stream.
Serializes the JSON value into the given IO stream .
&self
writer
W
&self
writer
W
panics
Panics if this `JsonbRef` was constructed with a [`Datum`] that is not
representable as JSON.
Panics if this ` JsonbRef ` was constructed with a [ ` Datum ` ] that is not representable as JSON .