line_directive in compiletest::directives::line - Rust
Description: If the given line begins with the appropriate comment prefix for a directive, returns a struct containing various parts of the directive.

Skip to main content

## line_directive

# Function line_directive

Source

    pub(crate) fn line_directive<'a>(
        file_path: &'a Utf8Path,
        line_number: LineNumber,
        original_line: &'a str,
    ) -> Option<DirectiveLine<'a>>

Expand description

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