find_section_end

Function find_section_end 

Source
pub fn find_section_end(
    source: &str,
    end_hint: usize,
    _section_type: SectionType,
) -> Result<usize, ParseError>
Expand description

Find the end of a section (start of next section or end of file)

ยงErrors

Returns ParseError if an error occurs while finding the section end