MCPcopy Index your code
hub / github.com/endbasic/endbasic / print

Method print

std/src/console/trivial.rs:95–103  ·  view source on GitHub ↗
(&mut self, text: &str)

Source from the content-addressed store, hash-verified

93 }
94
95 fn print(&mut self, text: &str) -> io::Result<()> {
96 let text = remove_control_chars(text);
97
98 let stdout = io::stdout();
99 let mut stdout = stdout.lock();
100 stdout.write_all(text.as_bytes())?;
101 stdout.write_all(b"\n")?;
102 Ok(())
103 }
104
105 async fn poll_key(&mut self) -> io::Result<Option<Key>> {
106 Ok(None)

Callers

nothing calls this directly

Calls 2

remove_control_charsFunction · 0.85
as_bytesMethod · 0.80

Tested by

no test coverage detected