pub struct PrologPredicateBuilder { /* private fields */ }Expand description
Fluent builder for PrologPredicate.
Implementations§
Source§impl PrologPredicateBuilder
impl PrologPredicateBuilder
Sourcepub fn discontiguous(self) -> Self
pub fn discontiguous(self) -> Self
Mark as discontiguous.
Sourcepub fn clause(self, c: PrologClause) -> Self
pub fn clause(self, c: PrologClause) -> Self
Add a clause.
Sourcepub fn fact(self, head: PrologTerm) -> Self
pub fn fact(self, head: PrologTerm) -> Self
Add a fact clause.
Sourcepub fn rule(self, head: PrologTerm, body: Vec<PrologTerm>) -> Self
pub fn rule(self, head: PrologTerm, body: Vec<PrologTerm>) -> Self
Add a rule clause.
Sourcepub fn build(self) -> PrologPredicate
pub fn build(self) -> PrologPredicate
Finalise.
Auto Trait Implementations§
impl Freeze for PrologPredicateBuilder
impl RefUnwindSafe for PrologPredicateBuilder
impl Send for PrologPredicateBuilder
impl Sync for PrologPredicateBuilder
impl Unpin for PrologPredicateBuilder
impl UnsafeUnpin for PrologPredicateBuilder
impl UnwindSafe for PrologPredicateBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more