pub struct NodeCounter {
pub axioms: usize,
pub inferences: usize,
}Expand description
A visitor that counts nodes by type.
Fields§
§axioms: usizeNumber of axiom nodes.
inferences: usizeNumber of inference nodes.
Trait Implementations§
Source§impl Debug for NodeCounter
impl Debug for NodeCounter
Source§impl Default for NodeCounter
impl Default for NodeCounter
Source§fn default() -> NodeCounter
fn default() -> NodeCounter
Returns the “default value” for a type. Read more
Source§impl ProofVisitor for NodeCounter
impl ProofVisitor for NodeCounter
Source§fn visit_node(&mut self, _proof: &Proof, node: &ProofNode)
fn visit_node(&mut self, _proof: &Proof, node: &ProofNode)
Visit a proof node.
Source§fn visit_axiom(&mut self, _proof: &Proof, _id: ProofNodeId, _conclusion: &str)
fn visit_axiom(&mut self, _proof: &Proof, _id: ProofNodeId, _conclusion: &str)
Visit an axiom node.
Source§fn visit_inference(
&mut self,
_proof: &Proof,
_id: ProofNodeId,
_rule: &str,
_premises: &[ProofNodeId],
_conclusion: &str,
)
fn visit_inference( &mut self, _proof: &Proof, _id: ProofNodeId, _rule: &str, _premises: &[ProofNodeId], _conclusion: &str, )
Visit an inference node.
Auto Trait Implementations§
impl Freeze for NodeCounter
impl RefUnwindSafe for NodeCounter
impl Send for NodeCounter
impl Sync for NodeCounter
impl Unpin for NodeCounter
impl UnsafeUnpin for NodeCounter
impl UnwindSafe for NodeCounter
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