pub fn to_vec_with_formatter<F>(value: &Sexp, formatter: F) -> Result<Vec<u8>, SexpError>
where
    F: Formatter,
{
    let mut writer = Vec::with_capacity(128);
    to_writer_with_formatter(&mut writer, formatter, value)?;
    Ok(writer)
}
/// serialize a symbolic-expression to a Vec<u8> using a Formatter
serialize a symbolic-expression to a Vec using a Formatter
serialize a symbolic - expression to a Vec using a Formatter
pub fn to_vec_with_formatter<F>(value: &Sexp, formatter: F) -> Result<Vec<u8>, SexpError>
where
    F: Formatter,
{
    let mut writer = Vec::with_capacity(128);
    to_writer_with_formatter(&mut writer, formatter, value)?;
    Ok(writer)
}
pub fn to_vec_with_formatter < F > ( value : & Sexp , formatter : F ) -> Result < Vec < u8 > , SexpError > where F : Formatter , { let mut writer = Vec :: with_capacity ( 128 ) ; to_writer_with_formatter ( & mut writer , formatter , value ) ? ; Ok ( writer ) }
serialize a symbolic-expression to a Vec<u8> using a Formatter
serialize a symbolic - expression to a Vec<u8 > using a Formatter
value
&Sexp
formatter
F