Skip to main content

struct_owner_module

Function struct_owner_module 

Source
pub fn struct_owner_module(
    graph: &ModuleGraph<'_>,
    module: &Module,
    struct_name: &str,
) -> String
Expand description

Return the module that owns a struct type referenced from module.

Checks local declarations first, then walks use imports and their submodules.