tabled

Trait TableIteratorExt

Source
pub trait TableIteratorExt {
    type Records;

    // Required method
    fn table(self) -> Table<Self::Records>;
}
Expand description

A trait for IntoIterator whose Item type is bound to Tabled. Any type implements IntoIterator can call this function directly

use tabled::{TableIteratorExt, Style};

let strings: &[&str] = &["Hello", "World"];

let mut table = strings.table();
table.with(Style::psql());

println!("{}", table);

Required Associated Types§

Source

type Records

A underline Records

Required Methods§

Source

fn table(self) -> Table<Self::Records>

Returns a Table instance from a given type

Implementors§

Source§

impl<I, T> TableIteratorExt for I
where I: IntoIterator<Item = T>, T: Tabled,