pub struct Cell<'a> {
pub column: &'a str,
pub part: Option<RowPart>,
pub content: Markup<'a>,
}Expand description
One cell of a row.
The contents are Markup rather than text, and that is the whole shape of
this module: a cell holds whatever the app builds, and the app says so by
naming it. Escaping a cell here would be wrong as well as impossible — a
task row’s description cell is five nested spans and a badge.
Fields§
§column: &'a strWhich column this fills, by name.
part: Option<RowPart>What kind of text it is, when it is text.
Carries the row-part class the stylesheet half already emits, so a secondary cell says it is secondary in the description’s own words rather than in the app’s.
content: Markup<'a>The contents. Trusted app markup.
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