oxilean-codegen 0.1.2

OxiLean code generator - LCNF-based compilation and optimization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! # PrologGoalBuilder - to_clause_group Methods
//!
//! This module contains method implementations for `PrologGoalBuilder`.
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)

use super::types::{PrologClause, PrologTerm};

use super::prologgoalbuilder_type::PrologGoalBuilder;

impl PrologGoalBuilder {
    /// Build a clause with the given head.
    #[allow(dead_code)]
    pub fn to_clause(self, head: PrologTerm) -> PrologClause {
        PrologClause::rule(head, self.goals)
    }
}