pub fn to_string<T>(value: &T) -> Result<String>
where
    T: Serialize,
{
    let mut serializer = Serializer::new();
    value.serialize(&mut serializer)?;

    let header = serializer.header.to_string();

    Ok(header + &serializer.output)
}
/// Serialize an instance of type `T` into an ARFF formatted string.
Serialize an instance of type `T` into an ARFF formatted string.
Serialize an instance of type ` T ` into an ARFF formatted string .
pub fn to_string<T>(value: &T) -> Result<String>
where
    T: Serialize,
{
    let mut serializer = Serializer::new();
    value.serialize(&mut serializer)?;
    let header = serializer.header.to_string();
    Ok(header + &serializer.output)
}
pub fn to_string < T > ( value : & T ) -> Result < String > where T : Serialize , { let mut serializer = Serializer :: new ( ) ; value . serialize ( & mut serializer ) ? ; let header = serializer . header . to_string ( ) ; Ok ( header + & serializer . output ) }
Serialize an instance of type `T` into an ARFF formatted string.
Serialize an instance of type ` T ` into an ARFF formatted string .
value
&T
value
&T