Function parse_str
Source pub fn parse_str(input: &str) -> Result<DxValue>
Expand description
Parse DX from string
Convenience wrapper around parse() that accepts a string slice.
§Example
use serializer::parser::parse_str;
let value = parse_str("name:Alice\nage:30").unwrap();
§Errors
Returns the same errors as parse(). See that function for the complete
list of error conditions.