pub struct PrologAssertionBuilder;Expand description
Build dynamic database manipulation sequences.
Implementations§
Source§impl PrologAssertionBuilder
impl PrologAssertionBuilder
Sourcepub fn assertz_fact(head: PrologTerm) -> PrologTerm
pub fn assertz_fact(head: PrologTerm) -> PrologTerm
assertz(Head) — assert a fact at the end.
Sourcepub fn asserta_fact(head: PrologTerm) -> PrologTerm
pub fn asserta_fact(head: PrologTerm) -> PrologTerm
asserta(Head) — assert a fact at the front.
Sourcepub fn assertz_rule(head: PrologTerm, body: PrologTerm) -> PrologTerm
pub fn assertz_rule(head: PrologTerm, body: PrologTerm) -> PrologTerm
assertz((Head :- Body)) — assert a rule at the end.
Sourcepub fn retract(head: PrologTerm) -> PrologTerm
pub fn retract(head: PrologTerm) -> PrologTerm
retract(Head) — retract a fact.
Sourcepub fn retractall(head: PrologTerm) -> PrologTerm
pub fn retractall(head: PrologTerm) -> PrologTerm
retractall(Head) — retract all matching facts.
Sourcepub fn abolish(name: &str, arity: usize) -> PrologTerm
pub fn abolish(name: &str, arity: usize) -> PrologTerm
abolish(Name/Arity) — remove all clauses.
Auto Trait Implementations§
impl Freeze for PrologAssertionBuilder
impl RefUnwindSafe for PrologAssertionBuilder
impl Send for PrologAssertionBuilder
impl Sync for PrologAssertionBuilder
impl Unpin for PrologAssertionBuilder
impl UnsafeUnpin for PrologAssertionBuilder
impl UnwindSafe for PrologAssertionBuilder
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