MCPcopy 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
36pub struct EscapeLayout {

Callers 4

writeMethod · 0.45
escaped_char_lenMethod · 0.45
write_charMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected