#[non_exhaustive]pub enum CellPart {
Value,
Tokens,
Actions,
Link,
}Expand description
What a table cell holds.
RowPart for tables, and it exists for the same reason: a part that
carries a control is not text, and a renderer with one class for the whole
cell paints it as though it were: a button in a cell inherits the cell’s
content colour, which is the drift RowPart::intent prevents for rows.
Four members, and the count is what quasi’s Cell was measured to carry: a
value, tokens, actions and a link. Nothing was added past what something
holds.
#[non_exhaustive] for RowPart’s reason: growth here must not be a
lockstep event across three renderers.
§No hover-reveal
This enum never gets one. A cell’s actions are shown at rest in every consumer measured, and a member nothing uses is one three renderers owe an answer for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Value
The cell’s own text.
Tokens
Small labelled things in the cell: a status badge, a chip.
Actions
Controls that act on what the row is about.
Link
The cell’s value, where the value is itself a link.
Implementations§
Source§impl CellPart
impl CellPart
Sourcepub const fn intent(self) -> &'static str
pub const fn intent(self) -> &'static str
The content intent the part takes.
One part is text and three are not, so three answer with the intent
inheriting already gives. That is RowPart::intent’s shape with the
text side narrower: a cell’s secondary and muted readings are the
column’s business, not the cell’s.