Struct comfy_table::Row [−][src]
pub struct Row { /* fields omitted */ }
Implementations
Add a cell to the row.
use comfy_table::{Row, Cell}; let mut row = Row::new(); row.add_cell(Cell::new("One"));
Truncate content of cells which occupies more than X lines of space.
use comfy_table::{Row, Cell}; let mut row = Row::new(); row.max_height(5);
Get the amount of cells on this row.
Trait Implementations
Create a Row from any Into<Cells>
.
Cells is a simple wrapper around a Vec<Cell>
.
Check the From implementations on Cell for more information.
use comfy_table::{Row, Cell}; let row = Row::from(vec!["One", "Two", "Three",]); let row = Row::from(vec![ Cell::new("One"), Cell::new("Two"), Cell::new("Three"), ]); let row = Row::from(vec![1, 2, 3, 4]);
Auto Trait Implementations
impl RefUnwindSafe for Row
impl UnwindSafe for Row
Blanket Implementations
Mutably borrows from an owned value. Read more