Struct tui::widgets::Cell [−][src]
pub struct Cell<'a> { /* fields omitted */ }
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"));
You can apply a Style
on the entire Cell
using Cell::style
or rely on the styling
capabilities of Text
.
Implementations
Trait Implementations
impl<'a> StructuralPartialEq for Cell<'a>
[src]
impl<'a> StructuralPartialEq for Cell<'a>
[src]Auto Trait Implementations
impl<'a> RefUnwindSafe for Cell<'a>
impl<'a> RefUnwindSafe for Cell<'a>
impl<'a> UnwindSafe for Cell<'a>
impl<'a> UnwindSafe for Cell<'a>