fn clear(&mut self) {
        for i in 0..self.num_row {
            for j in 0..self.num_col {
                self.buf[i][j] = ConsoleChar::default()
            }
        }
        if let Some(fb) = FRAME_BUFFER.lock().as_mut() {
            fb.clear();
        }
    }
/// Clear the entire buffer and screen.
Clear the entire buffer and screen.
Clear the entire buffer and screen .
fn clear(&mut self) {
        for i in 0..self.num_row {
            for j in 0..self.num_col {
                self.buf[i][j] = ConsoleChar::default()
            }
        }
        if let Some(fb) = FRAME_BUFFER.lock().as_mut() {
            fb.clear();
        }
    }
fn clear ( & mut self ) { for i in 0 .. self . num_row { for j in 0 .. self . num_col { self . buf [ i ] [ j ] = ConsoleChar :: default ( ) } } if let Some ( fb ) = FRAME_BUFFER . lock ( ) . as_mut ( ) { fb . clear ( ) ; } }
Clear the entire buffer and screen.
Clear the entire buffer and screen .
&mut self
&mut self