Skip to main content

quote_json_string_with_control

Function quote_json_string_with_control 

Source
pub fn quote_json_string_with_control(
    text: &str,
    control: &ProductionControl<'_>,
) -> Result<Produced<String>>
Expand description

Quote borrowed UTF-8 with the native JSON string escaper, charging output and bounded scratch to the invoking allowance.