Struct tui::widgets::Cell [−][src]
pub struct Cell<'a> { /* fields omitted */ }
Expand description
A Cell
contains the Text
to be displayed in a Row
of a Table
.
It can be created from anything that can be converted to a Text
.
Cell::from("simple string"); Cell::from(Span::from("span")); Cell::from(Spans::from(vec![ Span::raw("a vec of "), Span::styled("spans", Style::default().add_modifier(Modifier::BOLD)) ])); Cell::from(Text::from("a text")); Cell::from(Text::from(Cow::Borrowed("hello")));
You can apply a Style
on the entire Cell
using Cell::style
or rely on the styling
capabilities of Text
.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Cell<'a>
impl<'a> UnwindSafe for Cell<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more