Skip to main content

closing_directive_depth

Function closing_directive_depth 

Source
pub fn closing_directive_depth(trimmed: &str) -> Option<usize>
Expand description

If the line is a closing directive (::, :::, …), return the depth (colon count).

Public since 0.10.0: source-scanning consumers (e.g. span re-scan passes in downstream tooling) pair this with opening_directive.