Skip to main content

TClear

Trait TClear 

Source
pub trait TClear {
    // Required methods
    fn clear_screen(&mut self) -> Result<()>;
    fn clear_below_cursor(&mut self) -> Result<()>;
    fn clear_above_cursor(&mut self) -> Result<()>;
    fn clear_line(&mut self) -> Result<()>;
}
Expand description

Clear screen trait implemented on Terminal

Required Methods§

Source

fn clear_screen(&mut self) -> Result<()>

Source

fn clear_below_cursor(&mut self) -> Result<()>

Source

fn clear_above_cursor(&mut self) -> Result<()>

Source

fn clear_line(&mut self) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Write> TClear for Terminal<'_, T>