Function serde_java_properties::from_slice_with_encoding [−][src]
pub fn from_slice_with_encoding<'a, T: Deserialize<'a>>(
input: &'a [u8],
encoding: &'static dyn Encoding
) -> Result<T, Error>
Expand description
Turn a byte slice into a value of T
using the given encoding
This should technically be T: DeserializeOwned
, but the implementation may change in the future