Skip to main content

source_in_package

Function source_in_package 

Source
pub fn source_in_package(
    hir: &Hir<'_>,
    source_id: SourceId,
    roots: &[&str],
) -> bool
Expand description

True if the source file of source_id lives under one of the given package-root directory names (matched as whole, case-insensitive path components).