compiletest::header

Function line_directive

source
pub fn line_directive<'line>(
    comment: &str,
    original_line: &'line str,
) -> Option<(Option<&'line str>, &'line str)>
Expand description

Extract an (Option<line_revision>, directive) directive from a line if comment is present.

See DirectiveLine for a diagram.