pub fn deps(&self) -> BTreeSet<String> {
        let results = self.results();
        let imports = self.imports();
        self.rules
            .iter()
            .flat_map(|rule| {
                let mut deps: BTreeSet<String> = rule
                    .clauses
                    .iter()
                    .flat_map(|clause| clause.deps())
                    .collect();
                deps.extend(rule.goal.props.values().flat_map(|value| value.deps()));
                deps
            })
            .filter(|name| !results.contains(name) && !imports.contains(name))
            .collect()
    }
/// Returns the names of all external relations that this program uses.
Returns the names of all external relations that this program uses.
Returns the names of all external relations that this program uses .
pub fn deps(&self) -> BTreeSet<String> {
        let results = self.results();
        let imports = self.imports();
        self.rules
            .iter()
            .flat_map(|rule| {
                let mut deps: BTreeSet<String> = rule
                    .clauses
                    .iter()
                    .flat_map(|clause| clause.deps())
                    .collect();
                deps.extend(rule.goal.props.values().flat_map(|value| value.deps()));
                deps
            })
            .filter(|name| !results.contains(name) && !imports.contains(name))
            .collect()
    }
pub fn deps ( & self ) -> BTreeSet < String > { let results = self . results ( ) ; let imports = self . imports ( ) ; self . rules . iter ( ) . flat_map ( | rule | { let mut deps : BTreeSet < String > = rule . clauses . iter ( ) . flat_map ( | clause | clause . deps ( ) ) . collect ( ) ; deps . extend ( rule . goal . props . values ( ) . flat_map ( | value | value . deps ( ) ) ) ; deps } ) . filter ( | name | ! results . contains ( name ) && ! imports . contains ( name ) ) . collect ( ) }
Returns the names of all external relations that this program uses.
Returns the names of all external relations that this program uses .
&self
&self