Skip to main content

has_behavior

Function has_behavior 

Source
pub fn has_behavior(source: &str, path: &Path) -> bool
Expand description

true when source (a module at path) holds a function with a body or control flow anywhere in it. A module that fails to parse is true: the presence rule keeps a module it couldn’t read as a subject.