Module
std::meta::module
contains methods on the built-in Module
type which represents a module in the source program.
Note that this type represents a module generally, it isn't limited to only mod my_submodule { ... }
declarations in the source program.
Methods
name
name
fn name(self) -> Quoted {}
Returns the name of the module.
functions
functions
fn functions(self) -> [FunctionDefinition] {}
Returns each function in the module.
is_contract
is_contract
fn is_contract(self) -> bool {}
true
if this module is a contract module (was declared via contract foo { ... }
).