pub struct ProofRule {
pub name: String,
pub premises: Vec<Node>,
pub conclusion: Node,
}Expand description
A declared rule of inference. Premises and the conclusion are stored as
AST nodes; leaves whose token starts with ? are metavariables that
bind during check_proof_object. Repeated metavariables must
structurally match.
Fields§
§name: String§premises: Vec<Node>§conclusion: NodeTrait Implementations§
impl StructuralPartialEq for ProofRule
Auto Trait Implementations§
impl Freeze for ProofRule
impl RefUnwindSafe for ProofRule
impl Send for ProofRule
impl Sync for ProofRule
impl Unpin for ProofRule
impl UnsafeUnpin for ProofRule
impl UnwindSafe for ProofRule
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