pub fn draw_horizontal_line(&mut self, row: usize, columns: Range<usize>) {
        let len = columns.len();
        for (index, c) in columns.enumerate() {
            let new_dirs = if index == 0 {
                RIGHT
            } else if index == len - 1 {
                LEFT
            } else {
                LEFT | RIGHT
            };
            self.add_box_dirs(row, c, new_dirs);
        }
    }
/// Draws a horizontal line along a given row for the given range
/// of columns.
Draws a horizontal line along a given row for the given range
of columns.
Draws a horizontal line along a given row for the given range of columns .
pub fn draw_horizontal_line(&mut self, row: usize, columns: Range<usize>) {
        let len = columns.len();
        for (index, c) in columns.enumerate() {
            let new_dirs = if index == 0 {
                RIGHT
            } else if index == len - 1 {
                LEFT
            } else {
                LEFT | RIGHT
            };
            self.add_box_dirs(row, c, new_dirs);
        }
    }
pub fn draw_horizontal_line ( & mut self , row : usize , columns : Range < usize > ) { let len = columns . len ( ) ; for ( index , c ) in columns . enumerate ( ) { let new_dirs = if index == 0 { RIGHT } else if index == len - 1 { LEFT } else { LEFT | RIGHT } ; self . add_box_dirs ( row , c , new_dirs ) ; } }
Draws a horizontal line along a given row for the given range
of columns.
Draws a horizontal line along a given row for the given range of columns .
&mut self
row
usize
columns
Range<usize>
&mut self
row
usize
columns
Range<usize>