pub const ROW_PART_CLASSES: &[&str];Expand description
The class for a row part.
RowPart is #[non_exhaustive], so a member added upstream does not stop
this compiling.
The fallback is what that costs. A member added upstream lands here as a
bare row-part with no rule of its own, which is a thing rendering plainly
rather than a build that stops. Grep this function when adopting a new
makeover-layout.
Public, because a row’s parts are emitted by whoever builds the row element
and that is not always this crate: cells_html emits a table’s cells, but a
list row carries the app’s identity and hooks, so a screen renderer writes
it. A renderer that reimplements this list rather than calling it takes on
the obligation above without knowing it.
Every class part_class can return, including the fallback.
Beside the match rather than derived from it, because a match over a
#[non_exhaustive] enum cannot be enumerated from outside. It carries the
same obligation the match does and a test below holds the two together, so
a new arm added without a new entry fails rather than silently narrowing
what a checker believes this crate can emit.