Struct zui_widgets::widgets::Row [−][src]
pub struct Row<'a> { /* fields omitted */ }
Expand description
Holds data to be displayed in a Table
widget.
A Row
is a collection of cells. It can be created from simple strings:
Row::new(vec!["Cell1", "Cell2", "Cell3"]);
But if you need a bit more control over individual cells, you can explicity create Cell
s:
Row::new(vec![
Cell::from("Cell1"),
Cell::from("Cell2").style(Style::default().fg(Color::Yellow)),
]);
You can also construct a row from any type that can be converted into Text
:
Row::new(vec![
Cow::Borrowed("hello"),
Cow::Owned("world".to_uppercase()),
]);
By default, a row has a height of 1 but you can change this using Row::height
.
Implementations
Set the bottom margin. By default, the bottom margin is 0
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> UnwindSafe for Row<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more