tabiew 0.16.0

A lightweight TUI application to view and query tabular data files, such as CSV, TSV, and parquet.
use ratatui::text::{Line, Span};

#[derive(Debug, Default)]
pub struct LineBuilder {
    buf: Vec<Span<'static>>,
}

impl LineBuilder {
    pub fn push_span(&mut self, span: Span<'static>) {
        self.buf.push(span);
    }

    pub fn into_line(self) -> Line<'static> {
        self.buf.into()
    }

    pub fn is_empty(&self) -> bool {
        self.buf.is_empty()
    }
}