pub struct Predicate {
pub name: String,
pub terms: Vec<Term>,
}Expand description
Builder for a Datalog predicate, used in facts and rules
Fields§
§name: String§terms: Vec<Term>Implementations§
Trait Implementations§
Source§impl Convert<Predicate> for Predicate
impl Convert<Predicate> for Predicate
fn convert(&self, symbols: &mut SymbolTable) -> Predicate
fn convert_from(p: &Predicate, symbols: &SymbolTable) -> Result<Self, Format>
fn translate( f: &T, from_symbols: &SymbolTable, to_symbols: &mut SymbolTable, ) -> Result<T, Format>
impl Eq for Predicate
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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