Skip to main content

to_string_value

Function to_string_value 

Source
pub fn to_string_value(v: &Value) -> Result<Value, String>
Expand description

ToString(v) with ToPrimitive method dispatch: an object is converted with the string hint (so a user toString — or valueOf, if toString is absent or returns an object — is invoked), then rendered by str_of. Returns a heap string value.