simd_json::serde

Function to_vec

Source
pub fn to_vec<T>(to: &T) -> Result<Vec<u8>>
where T: Serialize + ?Sized,
Expand description

Write a value to a vector

ยงErrors

when the data can not be written