pub struct Cell<'a> {
pub column: &'a str,
pub part: Option<CellPart>,
pub content: Line<'a>,
}Expand description
One cell of a row.
The contents are a ratatui Line rather than a string, which is this
crate’s version of the webview Cell holding markup: the app owns what goes
in the cell, spans and all, and says which column it belongs to by name.
Fields§
§column: &'a strWhich column this fills, by name.
part: Option<CellPart>What the cell holds, when the whole cell is one thing.
None for a cell mixing parts. A cell holding a value and a strip of
tokens and a control is three parts in one cell, and a terminal cell
has one style to give, so the app styles the spans itself. This field is
for the single-part case, which is the common one.
content: Line<'a>The contents.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Cell<'a>
impl<'a> RefUnwindSafe for Cell<'a>
impl<'a> Send for Cell<'a>
impl<'a> Sync for Cell<'a>
impl<'a> Unpin for Cell<'a>
impl<'a> UnsafeUnpin for Cell<'a>
impl<'a> UnwindSafe for Cell<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more