pub struct RuleDef {
pub name: String,
pub required: Vec<Var>,
pub free: Vec<Var>,
pub clauses: Vec<Clause>,
}Expand description
One rule definition.
Fields§
§name: StringRule name.
required: Vec<Var>Head variables that must be bound at invocation.
free: Vec<Var>Remaining head variables.
clauses: Vec<Clause>Body clauses.
Implementations§
Trait Implementations§
impl Eq for RuleDef
impl StructuralPartialEq for RuleDef
Auto Trait Implementations§
impl Freeze for RuleDef
impl RefUnwindSafe for RuleDef
impl Send for RuleDef
impl Sync for RuleDef
impl Unpin for RuleDef
impl UnsafeUnpin for RuleDef
impl UnwindSafe for RuleDef
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