MCPcopy Create free account
hub / github.com/Infinity-OS/infinity / write_str

Method write_str

src/vga_buffer.rs:172–183  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

170
171impl fmt::Write for Writer {
172 fn write_str(&mut self, s: &str) -> ::core::fmt::Result {
173 for byte in s.bytes() {
174 self.write_byte(byte)
175 }
176
177 // If the console is enable, also print out to the console
178 if COM1.lock().is_enable() {
179 COM1.lock().write_str(s);
180 }
181
182 Ok(())
183 }
184}
185
186extern "C" fn panic_fmt(_: ::core::fmt::Arguments, _: &'static str, _: u32) -> ! {

Callers

nothing calls this directly

Calls 2

write_byteMethod · 0.80
is_enableMethod · 0.80

Tested by

no test coverage detected