Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ rust_str
Function
rust_str
crates/sre_engine/generate_tests.py:50–51 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
48
49
50
def
rust_str(s):
51
return
'"'
+ s.translate(EscapeRustStr) +
'"'
52
53
54
# matches `// pattern {varname} = re.compile(...)`
Callers
1
replace_compiled
Function · 0.85
Calls
1
translate
Method · 0.45
Tested by
no test coverage detected