Function serde_java_properties::from_slice[][src]

pub fn from_slice<'a, T: Deserialize<'a>>(input: &'a [u8]) -> Result<T, Error>
Expand description

Turn a byte slice into a value of T

This should technically be T: DeserializeOwned, but the implementation may change in the future

Important: Do not pass a str::as_bytes to this function. The reader expects ISO-8859-1 by default. Use from_str instead, which sets the correct encoding.