Skip to main content

header_allows

Function header_allows 

Source
fn header_allows(
    lines: &[&str],
    first_line: usize,
    line: usize,
    code: &str,
) -> bool
Expand description

Whether // mxl::allow(<code>) is on an item’s header: its lines first_line..=line (1-based: attributes, doc comments and the item’s own first line) or the line above them.