fn write_str(&mut self, s: &str)
	{
		for byte in s.bytes()
		{
			match byte
			{
				// Supported ASCII byte/newline ('\n')
				0x20..=0x7e | b'\n' => self.writebyte(byte),
				// Unsupported characters
				_ => self.writebyte(0xfe),
			}
		}
	}
// Write an ASCII string to the buffer.
//
// Lines are wrapped when the width of the buffer matches the BUFFW.
// Supports using the '\n' character.
// Does NOT support using non-ASCII charcters (VGA text-buffer can only use ASCII).
Write an ASCII string to the buffer.
Lines are wrapped when the width of the buffer matches the BUFFW.
Supports using the '\n' character.
Does NOT support using non-ASCII charcters (VGA text-buffer can only use ASCII).
Write an ASCII string to the buffer . Lines are wrapped when the width of the buffer matches the BUFFW . Supports using the ' \ n ' character . Does NOT support using non - ASCII charcters ( VGA text - buffer can only use ASCII ) .
fn write_str(&mut self, s: &str)
	{
		for byte in s.bytes()
		{
			match byte
			{
				// Supported ASCII byte/newline ('\n')
				0x20..=0x7e | b'\n' => self.writebyte(byte),
				// Unsupported characters
				_ => self.writebyte(0xfe),
			}
		}
	}
fn write_str ( & mut self , s : & str ) { for byte in s . bytes ( ) { match byte { // Supported ASCII byte/newline ('\n') 0x20 ..= 0x7e | b'\n' => self . writebyte ( byte ) , // Unsupported characters _ => self . writebyte ( 0xfe ) , } } }
Write an ASCII string to the buffer.
Write an ASCII string to the buffer .
&mut self
s
&str