Skip to main content

module_names

Function module_names 

Source
pub fn module_names() -> &'static [&'static str]
Expand description

Every module name the standard library declares.

This is cove_sema::package::load’s and Compiler::compile’s way of asking “is the standard library here?” without parsing anything: a package that already has a module by one of these names either loaded it from attach or collides with it, and either way the answer does not require a parse.