Skip to main content

from_slice

Function from_slice 

Source
pub fn from_slice<T>(s: &[u8]) -> Result<T, Error>
Expand description

Deserializes bytes into a type.

This function will attempt to interpret s as a TOML document and deserialize T from the document.

To deserializes TOML values, instead of documents, see ValueDeserializer.