compiletest::header

Function line_directive

Source
fn line_directive<'line>(
    line_number: usize,
    comment: &str,
    original_line: &'line str,
) -> Option<DirectiveLine<'line>>
Expand description

If the given line begins with the appropriate comment prefix for a directive, returns a struct containing various parts of the directive.