Function prometheus::encoder::escape_string
[−]
[src]
pub fn escape_string(v: &str, include_double_quote: bool) -> String
escape_string
replaces '\' by '\', new line character by '\n', and - if
include_double_quote
is true - '"' by '"'.