MCPcopy Index your code
hub / github.com/RustPython/RustPython / write_body

Method write_body

crates/literal/src/escape.rs:61–68  ·  view source on GitHub ↗
(&self, formatter: &mut impl core::fmt::Write)

Source from the content-addressed store, hash-verified

59 unsafe fn write_source(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result;
60 fn write_body_slow(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result;
61 fn write_body(&self, formatter: &mut impl core::fmt::Write) -> core::fmt::Result {
62 if self.changed() {
63 self.write_body_slow(formatter)
64 } else {
65 // SAFETY: verified the string contains only printable characters.
66 unsafe { self.write_source(formatter) }
67 }
68 }
69}
70
71/// Returns the outer quotes to use and the number of quotes that need to be

Callers 1

writeMethod · 0.80

Implementers 1

escape.rscrates/literal/src/escape.rs

Calls 3

changedMethod · 0.80
write_body_slowMethod · 0.80
write_sourceMethod · 0.80

Tested by

no test coverage detected