Function toml::decode_str [] [src]

pub fn decode_str<T: Decodable>(s: &str) -> Option<T>

Decodes a string into a toml-encoded value.

This function will parse the given string into a TOML value, and then parse the TOML value into the desired type. If any error occurs None is return. If more fine-grained errors are desired, these steps should be driven manually.