/// returns the top or bottom box line of the specified length
returns the top or bottom box line of the specified length
returns the top or bottom box line of the specified length
fn box_line(length: usize, is_top: bool) -> String {
    if length < 2 {
        return format!("");
    }
    if is_top {
        format!("{}{}{}", "┌", "─".repeat(length - 2), "┐")
    } else {
        format!("{}{}{}", "└", "─".repeat(length - 2), "┘")
    }
}
fn box_line ( length : usize , is_top : bool ) -> String { if length < 2 { return format ! ( " " ) ; } if is_top { format ! ( " " " " p at(len g th - 2 " ┐ } else { format ! ( " " " " p at(len g th - 2 " ┘ } }
returns the top or bottom box line of the specified length
returns the top or bottom box line of the specified length
length
usize
is_top
bool