pub struct HeadingRule { /* private fields */ }Expand description
The lowering rule RULE of headings, which is used on every backend except
latex-recomposed (see the lowering rules).
The rule lowers a heading to a
flm.pres.block-heading
node. The payload of this node (HeadingPayload) contains the name and the
level of the heading kind, whether the heading is listed in a table of
contents, the anchor of the heading, and the number of the heading as plain
text. The content of the node is the title of the heading, preceded by the
number if the heading is numbered.
If the heading has an alternative title (alt=, heading_alt), the rule
also lowers the alternative title, into the slot ALT_SLOT
of the node. The title is in the slot BODY_SLOT. The
latex-rendered backend writes the alternative title as the key alt of the
heading. The html and text backends write only the title.
The rule lowers a run-in heading to a
flm.pres.deco.runin
decoration. The payload of a decoration is empty. Therefore, the decoration
contains a
flm.pres.runin-heading
node, with the same payload and the same content as a block heading.
The rule also reports the problems in the key-value argument of the heading (see the options of a heading).
A HeadingRule can be constructed only in the headings feature, because
the rule contains the compiled heading title templates of the heading kinds
(HeadingDecl::title_number_format).
Trait Implementations§
Source§impl Clone for HeadingRule
impl Clone for HeadingRule
Source§impl Debug for HeadingRule
impl Debug for HeadingRule
Auto Trait Implementations§
impl !RefUnwindSafe for HeadingRule
impl !UnwindSafe for HeadingRule
impl Forget for HeadingRule
impl Freeze for HeadingRule
impl Move for HeadingRule
impl Send for HeadingRule
impl Sync for HeadingRule
impl Unpin for HeadingRule
impl UnsafeUnpin for HeadingRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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> ⓘ
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> ⓘ
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