logo
pub trait WriteStrExt: Write {
    fn write_str(&mut self, string: impl AsRef<str>) -> Result<()> { ... }
    fn write_line(&mut self, string: impl AsRef<str>) -> Result<()> { ... }
    fn move_cursor_up(&mut self, n: usize) -> Result<()> { ... }
    fn move_cursor_down(&mut self, n: usize) -> Result<()> { ... }
    fn clear_last_lines(&mut self, n: usize) -> Result<()> { ... }
    fn clear_line(&mut self) -> Result<()> { ... }
}
Expand description

io::Write extension for easier manipulation with strings and special sequences.

Provided Methods

Writes the given string into this writer.

Errors

If this writer fails to write the given string.

Writes the given string into this writer followed by a newline.

Errors

If this writer fails to write the given string.

Writes a special sequence into this writer moving a cursor up on n positions.

Errors

If this writer fails to write a special sequence.

Writes a special sequence into this writer moving a cursor down on n positions.

Errors

If this writer fails to write a special sequence.

Writes a special sequence into this writer clearing the last n lines.

Errors

If this writer fails to write a special sequence.

Writes a special sequence into this writer clearing the last line.

Errors

If this writer fails to write a special sequence.

Implementors