Skip to main content

rust_string

Function rust_string 

Source
pub fn rust_string(value: &str) -> String
Expand description

Escape a value so it can be embedded in a Rust string literal. 转义取值,使其能嵌入 Rust 字符串字面量。