pub struct LearnableRule {
pub mask_name: String,
pub head: Atom,
pub body: Vec<BodyLiteral>,
}Expand description
A learnable rule template parameterized by a named tensor mask. Used for differentiable ILP — the mask selects which (body1, body2, head) combinations are active during execution.
Fields§
§mask_name: StringName of the tensor mask controlling rule activation.
head: AtomHead atom of the rule template.
body: Vec<BodyLiteral>Body literals of the rule template.
Trait Implementations§
Source§impl Clone for LearnableRule
impl Clone for LearnableRule
Source§fn clone(&self) -> LearnableRule
fn clone(&self) -> LearnableRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LearnableRule
impl RefUnwindSafe for LearnableRule
impl Send for LearnableRule
impl Sync for LearnableRule
impl Unpin for LearnableRule
impl UnsafeUnpin for LearnableRule
impl UnwindSafe for LearnableRule
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