gbf_core::utils

Function escape_string

Source
pub fn escape_string<S>(input: S) -> String
where S: Into<String>,
Expand description

Escapes a string using std::ascii::escape_default.

§Arguments

  • input - A value that can be converted into a String.

§Returns

A new String where each character is escaped according to escape_default.