INNER CODE UNIT · Rust

row_started

jhspetersson/fselect · src/output/mod.rs:16

    fn row_started(&mut self) -> Option<String>;
    fn format_element(&mut self, name: &str, record: &str, is_last: bool) -> Option<String>;
    fn row_ended(&mut self) -> Option<String>;
    fn footer(&mut self) -> Option<String>;

    fn row_separator(&self) -> Option<String> {
        None
    }
}

pub struct ResultsWriter {
    formatter: Box<dyn ResultsFormatter>,
}

impl ResultsWriter {
    pub fn new(format: &OutputFormat) -> ResultsWriter {
        ResultsWriter {
            formatter: select_formatter(format),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…