pub fn delete_all_after_cursor(&mut self) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);
            buf.truncate(self.cursor);
        }
        self.no_newline = true;
        self.display()
    }
/// Deletes every character after the cursor until the end of the line.
Deletes every character after the cursor until the end of the line.
Deletes every character after the cursor until the end of the line .
pub fn delete_all_after_cursor(&mut self) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);
            buf.truncate(self.cursor);
        }
        self.no_newline = true;
        self.display()
    }
pub fn delete_all_after_cursor ( & mut self ) -> io :: Result < ( ) > { { let buf = cur_buf_mut ! ( self ) ; buf . truncate ( self . cursor ) ; } self . no_newline = true ; self . display ( ) }
Deletes every character after the cursor until the end of the line.
Deletes every character after the cursor until the end of the line .
&mut self
&mut self