Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_char
Method
to_char
crates/literal/src/escape.rs:28–33 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
26
27
#[inline]
28
pub const fn to_char(&self) -> char {
29
match self {
30
Self::Single =>
'\'
',
31
Self::Double =>
'"'
,
32
}
33
}
34
}
35
36
pub struct EscapeLayout {
Callers
4
write
Method · 0.45
output_layout_with_checker
Method · 0.45
escaped_char_len
Method · 0.45
write_char
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected