MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / write_str

Method write_str

os/src/console.rs:8–13  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

6
7impl Write for Stdout {
8 fn write_str(&mut self, s: &str) -> fmt::Result {
9 for c in s.chars() {
10 UART.write(c as u8);
11 }
12 Ok(())
13 }
14}
15
16pub fn print(args: fmt::Arguments) {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected