MCPcopy Create free account
hub / github.com/diem/move / is_script_module

Method is_script_module

language/move-model/src/model.rs:1835–1837  ·  view source on GitHub ↗

Returns true if this is a module representing a script.

(&self)

Source from the content-addressed store, hash-verified

1833
1834 /// Returns true if this is a module representing a script.
1835 pub fn is_script_module(&self) -> bool {
1836 self.data.name.is_script()
1837 }
1838
1839 /// Returns true of this module is target of compilation. A non-target module is
1840 /// a dependency only but not explicitly requested to process.

Callers 11

genMethod · 0.80
genMethod · 0.80
compute_abiMethod · 0.80
get_packed_typesFunction · 0.80
gen_moduleMethod · 0.80
gen_functionMethod · 0.80
is_exposedMethod · 0.80
has_unknown_callersMethod · 0.80
is_scriptMethod · 0.80
get_name_stringMethod · 0.80

Calls 1

is_scriptMethod · 0.45

Tested by

no test coverage detected