himalaya 0.5.4

Command-line interface for email management
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anyhow::Result;
use std::io;
use termcolor::{self, StandardStream};

pub trait WriteColor: io::Write + termcolor::WriteColor {}

impl WriteColor for StandardStream {}

pub trait PrintTable {
    fn print_table(&self, writter: &mut dyn WriteColor, opts: PrintTableOpts) -> Result<()>;
}

pub struct PrintTableOpts {
    pub max_width: Option<usize>,
}