pub struct SectionDef {
pub id: String,
pub name: String,
pub folio_start: Option<usize>,
pub folio_style: Option<String>,
pub start_page: String,
pub source_span: Option<Span>,
}Expand description
A section — a named, contiguous range of pages with its own folio
numbering, used for front-matter / chapters / appendices. A section LABELS
pages (like PDF page labels); it does not contain them. The range runs from
start_page until the next section’s start_page (or the document end).
Declared in the document-level sections block as a leaf entry:
section id="sec.front" name="Front Matter" start-page="page.cover".
The section id itself participates in the global id-uniqueness set.
Fields§
§id: StringGlobally-unique section id.
name: StringHuman-readable section name (e.g. “Front Matter”, “Chapter 1”). Usable as section-aware running-head text in a later unit.
folio_start: Option<usize>First folio number for this section (1-based). None defaults to 1.
folio_style: Option<String>Folio numbering style for this section: "decimal" (default),
"lower-roman", "upper-roman". None defaults to decimal.
start_page: StringId of the page that begins this section.
source_span: Option<Span>Source declaration span, when available.
Trait Implementations§
Source§impl Clone for SectionDef
impl Clone for SectionDef
Source§fn clone(&self) -> SectionDef
fn clone(&self) -> SectionDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SectionDef
impl Debug for SectionDef
Source§impl PartialEq for SectionDef
impl PartialEq for SectionDef
Source§fn eq(&self, other: &SectionDef) -> bool
fn eq(&self, other: &SectionDef) -> bool
self and other values to be equal, and is used by ==.