MCPcopy Create free account
hub / github.com/PRQL/prql / write_str

Method write_str

prqlc/prqlc/src/debug/render_html.rs:20–25  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

18
19 impl<W: std::io::Write> core::fmt::Write for IoWriter<W> {
20 fn write_str(&mut self, s: &str) -> std::fmt::Result {
21 self.inner
22 .write(s.as_bytes())
23 .map_err(|_| std::fmt::Error)?;
24 Ok(())
25 }
26 }
27 let mut io_writer = IoWriter { inner: writer };
28

Callers 5

fmtMethod · 0.80
fmtMethod · 0.80
fmtMethod · 0.80
fmtMethod · 0.80
fmtMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected