[go: up one dir, main page]

Function toml::de::from_slice [] [src]

pub fn from_slice<T>(bytes: &[u8]) -> Result<T, Error> where T: Deserialize

Deserializes a byte slice into a type.

This function will attempt to interpret bytes as UTF-8 data and then deserialize T from the TOML document provided.