Skip to main content

module_source_from_node_path

Function module_source_from_node_path 

Source
pub fn module_source_from_node_path(module: &str) -> Option<String>
Expand description

The source file a crate::… module path names, in this crate’s <dir>/<name>.rs layout; None when the path cannot name a file at all. crate::… 模块路径在本 crate 的 <dir>/<name>.rs 布局下指向的源文件;该路径根本无法 命名文件时为 None。