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

Method is_script

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

Returns true if the function is a script function

(&self)

Source from the content-addressed store, hash-verified

3236
3237 /// Returns true if the function is a script function
3238 pub fn is_script(&self) -> bool {
3239 // The main function of a scipt is a script function
3240 self.module_env.is_script_module() || self.definition_view().is_entry()
3241 }
3242
3243 /// Return true if this function is a friend function
3244 pub fn is_friend(&self) -> bool {

Callers 1

is_script_moduleMethod · 0.45

Calls 3

is_script_moduleMethod · 0.80
definition_viewMethod · 0.80
is_entryMethod · 0.45

Tested by

no test coverage detected