pub fn to_string_with_formatter<F>(value: &Sexp, formatter: F) -> Result<String, SexpError>
where
    F: Formatter,
{
    let vec = to_vec_with_formatter(value, formatter)?;
    let string = String::from_utf8(vec)?;
    Ok(string)
}
/// serialize a symbolic-expression to a String using a Formatter
serialize a symbolic-expression to a String using a Formatter
serialize a symbolic - expression to a String using a Formatter
pub fn to_string_with_formatter<F>(value: &Sexp, formatter: F) -> Result<String, SexpError>
where
    F: Formatter,
{
    let vec = to_vec_with_formatter(value, formatter)?;
    let string = String::from_utf8(vec)?;
    Ok(string)
}
pub fn to_string_with_formatter < F > ( value : & Sexp , formatter : F ) -> Result < String , SexpError > where F : Formatter , { let vec = to_vec_with_formatter ( value , formatter ) ? ; let string = String :: from_utf8 ( vec ) ? ; Ok ( string ) }
serialize a symbolic-expression to a String using a Formatter
serialize a symbolic - expression to a String using a Formatter
value
&Sexp
formatter
F