Trait Print

Source
pub trait Print: Sized {
    // Required method
    fn convert_table(self) -> Result<Table, Error>;

    // Provided methods
    fn print_all_tables(self) -> Result<(), Error> { ... }
    fn table_string(self) -> Result<String, Error> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Print for DmTableDesc

Implementors§

Source§

impl Print for QueryResult

Source§

impl Print for TableDescResultInner

Source§

impl<T> Print for T
where T: Cursor,

Print Cursor output to table.E.g:

> run you code...
╭────┬────────────┬────────────────────────────┬────────────────────────────╮
│ id │   name     │         created_at         │         updated_at         │
├────┼────────────┼────────────────────────────┼────────────────────────────┤
│ 1  │   hallo    │ 2022-08-24 15:50:36.000000 │ 2022-08-24 15:50:36.000000 │
╰────┴────────────┴────────────────────────────┴────────────────────────────╯