Skip to main content

check_section_format

Function check_section_format 

Source
pub fn check_section_format(
    def: &SectionDef,
    body: &str,
) -> Vec<SectionFormatViolation>
Expand description

Evaluate one section body against its declared format. Returns every violation in document order (the write path refuses with the first; health reports all). A section declaring no content — or one whose expression failed to compile, which the loader refuses anyway — produces no violations (free-form).