pub fn to_string(&self) -> Result<String> {
        let s = match *self {
            Datum::I64(i) => format!("{}", i),
            Datum::U64(u) => format!("{}", u),
            Datum::F64(f) => format!("{}", f),
            Datum::Bytes(ref bs) => String::from_utf8(bs.to_vec())?,
            Datum::Time(ref t) => format!("{}", t),
            Datum::Dur(ref d) => format!("{}", d),
            Datum::Dec(ref d) => format!("{}", d),
            Datum::Json(ref d) => d.to_string(),
            ref d => return Err(invalid_type!("can't convert {} to string", d)),
        };
        Ok(s)
    }
/// `to_string` returns a string representation of the datum.
`to_string` returns a string representation of the datum.
` to_string ` returns a string representation of the datum .
pub fn to_string(&self) -> Result<String> {
        let s = match *self {
            Datum::I64(i) => format!("{}", i),
            Datum::U64(u) => format!("{}", u),
            Datum::F64(f) => format!("{}", f),
            Datum::Bytes(ref bs) => String::from_utf8(bs.to_vec())?,
            Datum::Time(ref t) => format!("{}", t),
            Datum::Dur(ref d) => format!("{}", d),
            Datum::Dec(ref d) => format!("{}", d),
            Datum::Json(ref d) => d.to_string(),
            ref d => return Err(invalid_type!("can't convert {} to string", d)),
        };
        Ok(s)
    }
pub fn to_string ( & self ) -> Result < String > { let s = match * self { Datum :: I64 ( i ) => format ! ( " " i ) , Datum :: U64 ( u ) => format ! ( " " u ) , Datum :: F64 ( f ) => format ! ( " " f ) , Datum :: Bytes ( ref bs ) => String :: from_utf8 ( bs . to_vec ( ) ) ? , Datum :: Time ( ref t ) => format ! ( " " t ) , Datum :: Dur ( ref d ) => format ! ( " " d ) , Datum :: Dec ( ref d ) => format ! ( " " d ) , Datum :: Json ( ref d ) => d . to_string ( ) , ref d => return Err ( invalid_type ! ( " " d ) ) , } ; Ok ( s ) }
`to_string` returns a string representation of the datum.
` to_string ` returns a string representation of the datum .
&self
&self