Skip to main content

module_prefix

Function module_prefix 

Source
fn module_prefix(path: &[UseSegment]) -> &[UseSegment]
Expand description

Returns all but the last portion of the module path, except in the case of top-level modules (length 1), which remain unchanged. Used for Module-level imports_granularity.