Function to_vec_with_encoding

Source
pub fn to_vec_with_encoding<T: Serialize>(
    value: &T,
    encoding: &'static Encoding,
) -> Result<Vec<u8>, Error>
Expand description

Write a properties file to a byte buffer with the specified encoding