pub enum Cell {
Text(Text),
Markup(String),
Renderable(Arc<dyn Renderable + Send + Sync>),
}Expand description
A table cell: a markup string, styled text, or any renderable (upstream accepts all three).
Variants§
Text(Text)
A text cell, rendered literally (a Text is never re-parsed); its own
justify, overflow and no_wrap override the column’s.
Markup(String)
A plain string, which upstream renders through Console.render_str:
console markup and emoji codes are applied, and the column’s
highlight decides whether it is highlighted. Pass Cell::Text for
data that must stay literal.
Renderable(Arc<dyn Renderable + Send + Sync>)
A renderable cell, measured with __rich_measure__ and rendered at the
column width, as upstream’s Padding(renderable) cell is.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Cell
impl !UnwindSafe for Cell
impl Freeze for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more