Skip to main content

find_and_toggle_section

Function find_and_toggle_section 

Source
pub fn find_and_toggle_section(
    lines: &mut [String],
    section_id: &str,
    force: &Option<String>,
    comment_style: &CommentStyle,
) -> Result<SectionToggleResult>
Expand description

Find section markers and toggle the content between them. Returns a SectionToggleResult with modification status and parsed desc.