Skip to main content

string_literal

Function string_literal 

Source
pub fn string_literal(text: &str) -> String
Expand description

A double-quoted Python string literal holding text, in ASCII.

Every code point outside printable ASCII becomes \xXX, \uXXXX or \UXXXXXXXX, which Python reads back as the code point it names.