Module scale_value::stringify
source · Expand description
Converting a crate::Value
to or from strings.
Modules
- This module provides custom parsers that work alongside
crate::stringify::from_str_custom
and extend the syntax to support parsing common formats intocrate::Value
’s. Seecrate::stringify::from_str_custom
for a usage example.
Structs
- An error parsing the provided string into a Value
Enums
- Details about the error that occurred.
Functions
- Attempt to parse a string into a [
crate::Value<()>
], returning a tuple consisting of a result (either the value or aParseError
containing location and error information) and the remainder of the string that wasn’t parsed. - This is similar to
from_str
, except that it returns aFromStrBuilder
, which allows for some additional configuration in how strings are parsed. - Identical to calling
to_string()
on thecrate::Value
, but here just to make it a little more obvious that this is the inverse offrom_str
.
Type Definitions
- An arbitrary custom error.