pub fn from_str<T: for<'a> FromToml<'a>>(
document: &str,
) -> Result<T, FromTomlError>Available on crate feature
from-toml only.Expand description
Parses and deserializes a TOML document in one step.
For borrowing or non-fatal errors, use parse and Document methods.
ยงErrors
Returns a FromTomlError containing all parse or conversion errors
encountered.