Skip to main content

has_section

Function has_section 

Source
pub fn has_section(contents: &str) -> bool
Expand description

Whether contents shows any sign of a managed section.

Deliberately looser than upsert’s boundary detection: this answer decides whether init refuses to generate a second key, and there the safe direction is to see a trace that is not there rather than to miss one that is.