pub enum Heading {
Page,
Section,
Subsection,
}Expand description
How far down the heading tree a title sits.
Three, and only the three that are actually headings. The bands those used
to be filed with (goingson’s .page-header, Balanced Breakfast’s .header
and .detail-header) are arrangement, not type, and live at
Region::Band. One of them contains no text at all.
Variants§
Page
Names the whole screen. One per screen.
Section
Names a block within the screen.
Subsection
Names a sub-block inside an already-named section.
Implementations§
Source§impl Heading
impl Heading
Sourcepub const fn separated(self) -> bool
👎Deprecated since 0.50.1: a break is a member: write rule;, which is quasi_router::Node::Rule
pub const fn separated(self) -> bool
a break is a member: write rule;, which is quasi_router::Node::Rule
Which headings a rule follows.
Deprecated in 0.50.1, and replaced in 0.50.2 by
quasi_router::Node::Rule. No renderer ever read this, and the reason
it was never worth reading is the shape: it made the rule a property of
the heading above it, so a description could only ever break before a
heading and never between two ordinary members, which is where a break
is usually wanted. MNW spelled eight of those as id-scoped CSS for want
of a word for them.
A break is a member. All three renderers draw Node::Rule: an <hr> in
a browser, a row of box-drawing in a terminal, Separator in egui.
Still here only because deleting it would cascade the whole suite for a
predicate with no callers – this crate carries links, so a breaking
bump is a breaking bump for every renderer at once. Delete it at the
next one taken for a real reason.