find_section_header_start

Function find_section_header_start 

Source
pub fn find_section_header_start(
    source: &str,
    start_hint: usize,
    section_type: SectionType,
) -> Result<usize, ParseError>
Expand description

Find the start of a section header before the given position

ยงErrors

Returns ParseError::SectionNotFound if the section header cannot be found