Struct comfy_table::Cells[][src]

pub struct Cells(pub Vec<Cell>);
Expand description

A simple wrapper type for a Vec<Cell>. Needed to support super generic functions. Check the trait implementations for more docs.

Trait Implementations

Allow the conversion of a type to a Cells, which is a simple vector of cells.

By default this is implemented for all Iterators over items implementing ToString.

use comfy_table::{Row, Cells};

let cells_string: Cells = vec!["One", "Two", "Three"].into();
let cells_integer: Cells = vec![1, 2, 3, 4].into();

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.