syntect::dumps
pub fn dump_binary<T: Serialize>(o: &T) -> Vec<u8>
Dumps an object to a binary array in the same format as dump_to_file
dump_to_file