Skip to main content

PrintTable

Trait PrintTable 

Source
pub trait PrintTable {
    // Required method
    fn print(
        &self,
        writer: &mut dyn Write,
        table_max_width: Option<u16>,
    ) -> Result<()>;
}
Available on crate feature terminal only.
Expand description

A value that can render itself as a table.

Required Methods§

Source

fn print( &self, writer: &mut dyn Write, table_max_width: Option<u16>, ) -> Result<()>

Writes the table to the given writer, capped at an optional maximum width.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§